diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..404abb2 --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +coverage/ diff --git a/.nycrc b/.nycrc new file mode 100644 index 0000000..1826526 --- /dev/null +++ b/.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" + ] +} diff --git a/package.json b/package.json index d926664..d67c77a 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "prepublish": "safe-publish-latest", "lint": "eslint .", "pretest": "npm run lint", - "tests-only": "node test", + "tests-only": "nyc tape 'test/**/*.js'", "test": "npm run tests-only", "posttest": "npx aud --production", "version": "auto-changelog && git add CHANGELOG.md", @@ -38,6 +38,7 @@ "auto-changelog": "^2.2.1", "eslint": "^7.10.0", "has-symbols": "^1.0.1", + "nyc": "^10.3.2", "object-inspect": "^1.8.0", "safe-publish-latest": "^1.1.4", "tape": "^5.0.1"