Skip to content

Commit

Permalink
[Tests] run nyc on all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Dec 4, 2020
1 parent 9022b53 commit c37aab9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
1 change: 1 addition & 0 deletions .eslintignore
@@ -0,0 +1 @@
coverage/
13 changes: 13 additions & 0 deletions .nycrc
@@ -0,0 +1,13 @@
{
"all": true,
"check-coverage": false,
"reporter": ["text-summary", "text", "html", "json"],
"lines": 86,
"statements": 85.93,
"functions": 82.43,
"branches": 76.06,
"exclude": [
"coverage",
"test"
]
}
8 changes: 4 additions & 4 deletions package.json
Expand Up @@ -11,10 +11,10 @@
"scripts": {
"prepublish": "safe-publish-latest",
"pretest": "npm run lint",
"test": "npm run tests-only",
"tests-only": "node --harmony --es-staging test",
"test": "npm run tests-only && npm run test:harmony",
"tests-only": "nyc node test",
"test:harmony": "nyc node --harmony --es-staging test",
"posttest": "npx aud --production",
"coverage": "covert test/index.js",
"lint": "eslint .",
"eccheck": "eclint check *.js **/*.js > /dev/null",
"version": "auto-changelog && git add CHANGELOG.md",
Expand Down Expand Up @@ -43,10 +43,10 @@
"@ljharb/eslint-config": "^17.1.0",
"aud": "^1.1.2",
"auto-changelog": "^2.2.0",
"covert": "^1.1.1",
"eclint": "^2.8.1",
"eslint": "^7.6.0",
"foreach": "^2.0.5",
"nyc": "^10.3.2",
"safe-publish-latest": "^1.1.4",
"tape": "^5.0.1"
},
Expand Down

0 comments on commit c37aab9

Please sign in to comment.