Skip to content

Commit decec40

Browse files
hiroppyevilebottnawi
authored andcommitted
chore(jest): fix coverage reporter (#1861)
1 parent 93ce712 commit decec40

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

jest.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module.exports = {
44
testURL: 'http://localhost/',
5-
collectCoverage: true,
5+
collectCoverage: false,
66
coveragePathIgnorePatterns: ['test'],
77
moduleFileExtensions: ['js', 'json'],
88
testMatch: ['**/test/**/*.test.js'],

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
"lint": "eslint bin lib test examples client-src",
1818
"pretty": "prettier --loglevel warn --write \"**/*.{js,css,md,json,yml}\"",
1919
"test:only": "jest --runInBand",
20-
"test:watch": "jest --watch --runInBand",
21-
"test:coverage": "jest --runInBand --collectCoverageFrom='src/**/*.js' --coverage",
22-
"pretest": "npm run lint",
20+
"test:coverage": "npm run test:only -- --coverage",
21+
"test:watch": "npm run test:coverage --watch",
2322
"test": "npm run test:coverage",
23+
"pretest": "npm run lint",
2424
"prepare": "rimraf ./ssl/*.pem && npm run -s transpile:index && npm run -s build:live && npm run -s build:index && npm run -s build:sockjs",
2525
"transpile:index": "babel client-src/default --out-dir client --ignore *.config.js",
2626
"build:index": "webpack ./client-src/default/index.js -o client/index.bundle.js --color --config client-src/default/webpack.config.js",

0 commit comments

Comments
 (0)