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 14, 2020
1 parent 2096fe6 commit 8038329
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 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"
]
}
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
"prepublish": "safe-publish-latest",
"version": "auto-changelog && git add CHANGELOG.md",
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"",
"lint": "eslint .",
"lint": "eslint --ext=js,mjs .",
"pretest": "npm run lint",
"tests-only": "node test",
"tests-only": "nyc tape 'test/**/*.js'",
"test": "npm run tests-only",
"posttest": "npx aud --production"
"posttest": "aud --production"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -39,6 +39,7 @@
"aud": "^1.1.0",
"auto-changelog": "^2.0.0",
"eslint": "^6.8.0",
"nyc": "^10.3.2",
"safe-publish-latest": "^1.1.4",
"tape": "^5.0.0-next.5"
},
Expand Down

0 comments on commit 8038329

Please sign in to comment.