Skip to content

Commit ec37770

Browse files
Toilalalexjoverm
authored andcommitted
Move coverage option from package.json to npm scripts with --coverage (#254)
As code coverage seems to break sourcemaps line numbers, this change moves the coverage option from package.json Jest config to npm script --coverage flag for IDE debugging to work as expected. Close #171
1 parent e052192 commit ec37770

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
"prebuild": "rimraf dist",
2424
"build": "tsc --module commonjs && rollup -c rollup.config.ts && typedoc --out docs --target es6 --theme minimal --mode file src",
2525
"start": "rollup -c rollup.config.ts -w",
26-
"test": "jest",
27-
"test:watch": "jest --watch",
28-
"test:prod": "npm run lint && npm run test -- --coverage --no-cache",
26+
"test": "jest --coverage",
27+
"test:watch": "jest --coverage --watch",
28+
"test:prod": "npm run lint && npm run test -- --no-cache",
2929
"deploy-docs": "ts-node tools/gh-pages-publish",
3030
"report-coverage": "cat ./coverage/lcov.info | coveralls",
3131
"commit": "git-cz",
@@ -69,7 +69,6 @@
6969
"statements": 95
7070
}
7171
},
72-
"collectCoverage": true,
7372
"collectCoverageFrom": [
7473
"src/*.{js,ts}"
7574
]

0 commit comments

Comments
 (0)