Skip to content

Latest commit

 

History

History
18 lines (16 loc) · 616 Bytes

README.md

File metadata and controls

18 lines (16 loc) · 616 Bytes

jest-single-file-coverage

npm version

A little helper to test a single file in react-boilerplate, with coverage of the tested file.

Usage

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