Skip to content

Commit 7ea3bc3

Browse files
authored
fix cover report (#15)
1 parent f6e4120 commit 7ea3bc3

File tree

2 files changed

+795
-199
lines changed

2 files changed

+795
-199
lines changed

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"buildDist": "rm -rf dist/* && ./node_modules/.bin/tsc",
1515
"test": "npm run lint && npm run mocha",
1616
"mocha": "mocha --config test/.mocharc.json",
17-
"cover": "istanbul cover -x dist/index.js node_modules/mocha/bin/_mocha -- -R spec --config test/.mocharc.json",
17+
"cover": "nyc --reporter=lcov --reporter=text-summary mocha --config test/.mocharc.json",
1818
"lint": "tslint -c tslint.json 'src/**/*.ts' 'test/**/*.ts'"
1919
},
2020
"repository": {
@@ -54,6 +54,7 @@
5454
},
5555
"homepage": "https://github.com/PruvoNet/promise-blocking-queue#readme",
5656
"devDependencies": {
57+
"@istanbuljs/nyc-config-typescript": "^1.0.2",
5758
"@types/chai": "^4.3.5",
5859
"@types/chai-as-promised": "^7.1.5",
5960
"@types/mocha": "^10.0.1",
@@ -63,8 +64,8 @@
6364
"coveralls": "^3.1.1",
6465
"delay": "^6.0.0",
6566
"dirty-chai": "^2.0.1",
66-
"istanbul": "^0.4.5",
6767
"mocha": "^10.2.0",
68+
"nyc": "^15.1.0",
6869
"sinon": "^15.1.2",
6970
"sinon-chai": "^3.7.0",
7071
"sleep-promise": "^9.1.0",

0 commit comments

Comments
 (0)