Skip to content

Commit d8921aa

Browse files
authored
build: fix nyc coverage reporting (#475)
1 parent bdc9a8e commit d8921aa

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

package.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@
9696
"build": "tsc -p .",
9797
"watch": "tsc -w -p .",
9898
"start": "code testproject --extensionDevelopmentPath=.",
99-
"test": "mocha out/test --timeout 20000 --slow 1000 --retries 4",
100-
"cover": "nyc --all mocha out/test --timeout 20000 --slow 1000 --retries 4",
99+
"test": "mocha",
100+
"cover": "nyc mocha",
101101
"lint": "npm run tslint && npm run prettier",
102102
"tslint": "tslint -c tslint.json 'src/**/*.ts'",
103103
"prettier": "prettier \"**/{*.json,*.yml,.*.yml,*.ts,.prettierrc,*.md}\" --write --list-different",
@@ -114,12 +114,20 @@
114114
"commit-msg": "commitlint -E HUSKY_GIT_PARAM"
115115
}
116116
},
117+
"mocha": {
118+
"spec": "./out/test",
119+
"timeout": 20000,
120+
"slow": 1000,
121+
"retries": 4
122+
},
117123
"nyc": {
124+
"all": true,
118125
"include": [
119-
"out/**/*.js"
126+
"out/**/*.*",
127+
"src/**/*.*"
120128
],
121129
"exclude": [
122-
"out/test/**/*.js"
130+
"out/test/**/*.*"
123131
]
124132
},
125133
"contributes": {

0 commit comments

Comments
 (0)