diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 00000000..404abb22 --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +coverage/ diff --git a/.gitignore b/.gitignore index 77f05fa4..1e3b179d 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,7 @@ # Only apps should have lockfiles yarn.lock package-lock.json + +# coverage data +coverage/ +.nyc_output/ diff --git a/.nycrc b/.nycrc new file mode 100644 index 00000000..1826526e --- /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 fa5989d9..b2781e12 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "lint": "eslint . bin/*", "pretest": "npm run lint", "test": "npm run tests-only", - "tests-only": "tap test/*.js" + "tests-only": "nyc tap test/*.js" }, "testling": { "files": "test/browser/*.js",