Skip to content

Commit

Permalink
build: fix nyc coverage reporting (#475)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfbecker authored Dec 28, 2020
1 parent bdc9a8e commit d8921aa
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@
"build": "tsc -p .",
"watch": "tsc -w -p .",
"start": "code testproject --extensionDevelopmentPath=.",
"test": "mocha out/test --timeout 20000 --slow 1000 --retries 4",
"cover": "nyc --all mocha out/test --timeout 20000 --slow 1000 --retries 4",
"test": "mocha",
"cover": "nyc mocha",
"lint": "npm run tslint && npm run prettier",
"tslint": "tslint -c tslint.json 'src/**/*.ts'",
"prettier": "prettier \"**/{*.json,*.yml,.*.yml,*.ts,.prettierrc,*.md}\" --write --list-different",
Expand All @@ -114,12 +114,20 @@
"commit-msg": "commitlint -E HUSKY_GIT_PARAM"
}
},
"mocha": {
"spec": "./out/test",
"timeout": 20000,
"slow": 1000,
"retries": 4
},
"nyc": {
"all": true,
"include": [
"out/**/*.js"
"out/**/*.*",
"src/**/*.*"
],
"exclude": [
"out/test/**/*.js"
"out/test/**/*.*"
]
},
"contributes": {
Expand Down

0 comments on commit d8921aa

Please sign in to comment.