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 5, 2020
1 parent 227f80e commit 6a55013
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 12 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
coverage/
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# gitignore

lib-cov
*.seed
*.log
Expand All @@ -20,3 +22,6 @@ html/
npm-shrinkwrap.json
package-lock.json
yarn.lock

coverage/
.nyc_output/
14 changes: 12 additions & 2 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# gitignore

lib-cov
*.seed
*.log
Expand All @@ -15,5 +17,13 @@ npm-debug.log
node_modules

html/
.travis.yml
Makefile

# Only apps should have lockfiles
npm-shrinkwrap.json
package-lock.json
yarn.lock

coverage/
.nyc_output/

.github/workflows
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"
]
}
14 changes: 4 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,9 @@
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"",
"prepublish": "safe-publish-latest",
"pretest": "npm run --silent lint",
"test": "npm run --silent tests-only",
"posttest": "npx aud --production",
"tests-only": "npm run test:native && npm run test:why && npm run test:shimmed && npm run test:corejs",
"test:native": "node test/native",
"test:why": "node test/why",
"test:shimmed": "node test/shimmed",
"test:corejs": "node test/corejs",
"coverage": "covert test/native test/why",
"coverage-quiet": "covert test/native.js --quiet",
"test": "npm run tests-only",
"posttest": "aud --production",
"tests-only": "nyc tape 'test/**/*.js'",
"lint": "eslint ."
},
"repository": {
Expand Down Expand Up @@ -64,14 +58,14 @@
"aud": "^1.1.2",
"auto-changelog": "^2.0.0",
"core-js": "^2.6.5 || ^3",
"covert": "^1.1.1",
"es6-shim": "^0.35.5",
"eslint": "^7.1.0",
"foreach": "^2.0.5",
"has-bigints": "^1.0.0",
"has-symbols": "^1.0.1",
"make-arrow-function": "~1.1.0",
"make-generator-function": "^2.0.0",
"nyc": "^10.3.2",
"safe-publish-latest": "^1.1.4",
"tape": "^5.0.1"
},
Expand Down

0 comments on commit 6a55013

Please sign in to comment.