A little helper to test a single file in react-boilerplate, with coverage of the tested file.
First, install the package
npm install --save-dev jest-single-file-coverage
Add this line to package.json scripts
section
"test:1": "node ./node_modules/jest-single-file-coverage",
Finally, run with
npm run test:1 app/yourfile.test.js