Skip to content

Commit 0376b6f

Browse files
committed
[Tests] run nyc on all tests
1 parent ff87a16 commit 0376b6f

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

Diff for: .eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
coverage/

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ lib-cov
1212

1313
# Coverage directory used by tools like istanbul
1414
coverage
15+
.nyc_output/
1516

1617
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
1718
.grunt

Diff for: .nycrc

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"all": true,
3+
"check-coverage": false,
4+
"reporter": ["text-summary", "text", "html", "json"],
5+
"lines": 86,
6+
"statements": 85.93,
7+
"functions": 82.43,
8+
"branches": 76.06,
9+
"exclude": [
10+
"coverage",
11+
"test"
12+
]
13+
}

Diff for: package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@
1212
"prepublish": "safe-publish-latest",
1313
"pretest": "npm run lint",
1414
"test": "npm run tests-only",
15-
"tests-only": "node --harmony --es-staging test",
15+
"tests-only": "nyc tape 'test/**/*.js'",
1616
"posttest": "aud --production",
17-
"coverage": "covert test/index.js",
1817
"lint": "eslint .",
1918
"version": "auto-changelog && git add CHANGELOG.md",
2019
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
@@ -35,11 +34,11 @@
3534
"@ljharb/eslint-config": "^17.2.0",
3635
"aud": "^1.1.2",
3736
"auto-changelog": "^2.2.0",
38-
"covert": "^1.1.1",
3937
"eslint": "^7.9.0",
4038
"foreach": "^2.0.5",
4139
"indexof": "^0.0.1",
4240
"is": "^3.3.0",
41+
"nyc": "^10.3.2",
4342
"safe-publish-latest": "^1.1.4",
4443
"tape": "^5.0.1"
4544
},

0 commit comments

Comments
 (0)