Skip to content

Commit 1368ab3

Browse files
committed
more coverage best-practice from mtx-tool repo
1 parent 8deffca commit 1368ab3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

jest.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const config = {
3636
coverageProvider: "v8",
3737

3838
// A list of reporter names that Jest uses when writing coverage reports
39-
coverageReporters: [],
39+
coverageReporters: ["text-summary"],
4040

4141
// An object that configures minimum threshold enforcement for coverage results
4242
coverageThreshold: {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"scripts": {
1212
"patch": "npx patch-package",
1313
"test": "jest",
14-
"test:coverage": "jest --coverageReporters=html",
14+
"test:coverage": "jest --runInBand --coverageReporters=html --coverageReporters=text-summary",
1515
"test:remove-inline-snapshots": "npx replace '\\.toMatchInlineSnapshot\\(\\s*`[\\s\\S]*?`\\s*\\);' '.toMatchInlineSnapshot();' test -r --include='*.test.js'",
1616
"lint": "npm run prettier && npm run eslint && npm run jsdoc",
1717
"lint:fix": "npm run prettier:fix && npm run eslint:fix",

0 commit comments

Comments
 (0)