jest-auto-mock-components

1.0.0 • Public • Published

Jest auto-mock components

Based on jest-mock-external-components

Installation and setup

yarn add -D jest-auto-mock-components or npm install jest-auto-mock-components --save-dev

Add to your .babelrc / .babelrc.js / babel.config.js

plugins: ["jest-auto-mock-components/babel",]

Usage

import autoMockComponents from 'jest-auto-mock-components';

import YourComponent from './component';

autoMockComponents(YourComponent);

Package Sidebar

Install

npm i jest-auto-mock-components

Weekly Downloads

6

Version

1.0.0

License

MIT

Unpacked Size

14.4 kB

Total Files

9

Last publish

Collaborators

  • sjke