Skip to content
This repository has been archived by the owner on Oct 15, 2021. It is now read-only.

Commit

Permalink
refactor: Use CLI options to generate test coverage
Browse files Browse the repository at this point in the history
In the next release npm test will run test without generating coverage reports.

For now `npm test` and `npm run test:coverage` will do the same. This is to prevent a breaking change and will be changes with the next major release. Feel free to change this in your project setup.
  • Loading branch information
mischah committed May 3, 2018
1 parent 4b0ca35 commit 8c84d59
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@
"build:serve": "serve dist --open",
"build:analyze": "npm run webpack:stats --silent && webpack-bundle-analyzer ./.webpack-stats.json ./dist -s parsed",
"pretest": "npm run eslint --silent",
"test": "cross-env NODE_ENV=test jest",
"test:watch": "npm run test -- --watch",
"test": "cross-env NODE_ENV=test jest --coverage",
"test:watch": "npm run test:coverage -- --watch",
"test:coverage": "cross-env NODE_ENV=test jest --coverage",
"eslint": "eslint --ext .jsx,.js --cache build src",
"eslint:fix": "npm run eslint --silent -- --fix",
"eslint:watch": "onchange \"src/**/*.js\" \"src/**/*.jsx\" \"build/**/*.js\" -- onerror \"npm run eslint --silent\" -t \"Linting error(s)\"",
Expand Down Expand Up @@ -117,7 +118,6 @@
"<rootDir>/build/",
"<rootDir>/node_modules/"
],
"collectCoverage": true,
"collectCoverageFrom": [
"src/app/**/*.{js,jsx}",
"!**/node_modules/**"
Expand Down

0 comments on commit 8c84d59

Please sign in to comment.