Skip to content

Commit 0d2d562

Browse files
committed
[Tests] add nyc; increase coverage
1 parent 816c9e2 commit 0d2d562

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

.nycrc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"all": true,
3+
"reporter": [
4+
"html",
5+
"text",
6+
"lcov"
7+
],
8+
"exclude": [
9+
"coverage",
10+
"eslint.config.mjs",
11+
"example",
12+
"scripts",
13+
"test",
14+
"**/*.d.*ts"
15+
]
16+
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"lint": "eslint .",
3737
"postlint": "tsc -p . && attw -P",
3838
"pretests-only": "npm run submodule:update && cd ./test/resolver/nested_symlinks && node mylib/sync && node mylib/async",
39-
"tests-only": "tape test/*.js",
39+
"tests-only": "nyc tape test/*.js",
4040
"pretest": "npm run lint",
4141
"test": "npm run --silent tests-only",
4242
"posttest": "npm run test:multirepo && npx npm@\">= 10.2\" audit --production",
@@ -74,6 +74,7 @@
7474
"mkdirp": "^0.5.6",
7575
"mv": "^2.1.1",
7676
"npmignore": "^0.3.5",
77+
"nyc": "^10.3.2",
7778
"rimraf": "^2.7.1",
7879
"safe-publish-latest": "^2.0.0",
7980
"tap": "^0.4.13",

0 commit comments

Comments
 (0)