Skip to content

Commit

Permalink
[Tests] run nyc on all tests; use tape runner
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Dec 13, 2020
1 parent a916e89 commit 0a45b37
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 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"
]
}
5 changes: 3 additions & 2 deletions package.json
Expand Up @@ -9,8 +9,8 @@
"prepublish": "safe-publish-latest",
"pretest": "npm run lint",
"lint": "eslint .",
"tests-only": "node test",
"posttests-only": "node -e \"require('es5-shim'); require('es6-shim'); require('./test');\"",
"tests-only": "nyc tape 'test/**/*.js'",
"tests:shims": "nyc tape --require=es5-shim --require=es5-shim 'test/**/*.js'",
"test": "npm run tests-only",
"posttest": "npx aud --production"
},
Expand Down Expand Up @@ -44,6 +44,7 @@
"es6-shim": "^0.35.5",
"eslint": "^6.8.0",
"for-each": "^0.3.3",
"nyc": "^10.3.2",
"object-inspect": "^1.7.0",
"safe-publish-latest": "^1.1.4",
"tape": "^5.0.0-next.5"
Expand Down

0 comments on commit 0a45b37

Please sign in to comment.