Usage
Install
Install jest
(it needs Jest 23+) and jest-plugin-filename
yarn add --dev jest jest-plugin-filename # or with NPM npm install --save-dev jest jest-plugin-filename
Add it to your Jest config
In your package.json
Or in jest.config.js
moduleexports = watchPlugins: 'jest-plugin-filename';
Run Jest
yarn jest