Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit 45f43b4

Browse files
committed
nyc: require 100% coverage
1 parent 00cf8d0 commit 45f43b4

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.nycrc.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,8 @@ temp-directory: 'coverage'
77
report-dir: 'coverage'
88
skip-full: true
99
reporter: [json, html, text]
10+
check-coverage: true
11+
branches: 100
12+
lines: 100
13+
functions: 100
14+
statements: 100

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"node": ">= 10.x"
2929
},
3030
"scripts": {
31-
"test": "npm run prettier:check && npm run lint && npm run check && npm run testonly && npm run build && npm run check:integrations",
31+
"test": "npm run prettier:check && npm run lint && npm run check && npm run testonly:cover && npm run build && npm run check:integrations",
3232
"test:ci": "npm ci && npm run prettier:check && npm run lint && npm run check && npm run testonly:cover && npm run build && npm run check:integrations",
3333
"testonly": "mocha src/**/__tests__/**/*.ts",
3434
"testonly:cover": "nyc npm run testonly",

0 commit comments

Comments
 (0)