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 12, 2020
1 parent 1af6ffe commit 89e2611
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
coverage/
13 changes: 13 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -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"
]
}
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"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');\"",
"test": "npm run tests-only",
"posttest": "npx aud --production"
"tests-only": "nyc tape 'test/**/*.js'",
"tests:shims": "nyc tape --require=es5-shim --require=es5-shim 'test/**/*.js'",
"test": "npm run tests-only && npm run tests:shims",
"posttest": "aud --production"
},
"repository": {
"type": "git",
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 89e2611

Please sign in to comment.