Skip to content

Commit 205a13f

Browse files
committed
[Tests] run nyc on all tests
1 parent b140492 commit 205a13f

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

Diff for: .eslintignore

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

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
"scripts": {
2323
"prepublish": "safe-publish-latest",
2424
"pretest": "npm run --silent lint",
25-
"test": "npm run tests-only",
26-
"tests-only": "node --es-staging test",
25+
"test": "npm run tests-only && npm run test:harmony",
26+
"tests-only": "nyc tape test",
27+
"test:harmony": "nyc node --harmony --es-staging test",
2728
"posttest": "npx aud --production",
28-
"coverage": "covert test/index.js",
2929
"lint": "eslint .",
3030
"version": "auto-changelog && git add CHANGELOG.md",
3131
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
@@ -66,11 +66,11 @@
6666
"@ljharb/eslint-config": "^16.0.0",
6767
"aud": "^1.1.0",
6868
"auto-changelog": "^2.0.0",
69-
"covert": "^1.1.1",
7069
"eslint": "^6.8.0",
7170
"is-callable": "^1.1.5",
7271
"make-arrow-function": "^1.2.0",
7372
"make-generator-function": "^2.0.0",
73+
"nyc": "^10.3.2",
7474
"safe-publish-latest": "^1.1.4",
7575
"tape": "^5.0.0-next.5"
7676
},

0 commit comments

Comments
 (0)