From a48b128fdb8d427dfb20a15273f83e38d97bef07 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Mon, 10 Oct 2022 15:26:57 -0700 Subject: [PATCH] [Dev Deps] switch from `covert` to `nyc` --- .gitignore | 3 +++ .nycrc | 14 ++++++++++++++ package.json | 3 ++- 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 .nycrc diff --git a/.gitignore b/.gitignore index da9c2fc..0cfeaf4 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,9 @@ node_modules +coverage/ +.nyc_output/ + # Only apps should have lockfiles npm-shrinkwrap.json package-lock.json diff --git a/.nycrc b/.nycrc new file mode 100644 index 0000000..55c3d29 --- /dev/null +++ b/.nycrc @@ -0,0 +1,14 @@ +{ + "all": true, + "check-coverage": false, + "reporter": ["text-summary", "text", "html", "json"], + "lines": 86, + "statements": 85.93, + "functions": 82.43, + "branches": 76.06, + "exclude": [ + "coverage", + "example", + "test" + ] +} diff --git a/package.json b/package.json index fd1573b..ecd2d70 100644 --- a/package.json +++ b/package.json @@ -4,11 +4,12 @@ "description": "parse argument options", "main": "index.js", "devDependencies": { + "nyc": "^10.3.2", "tape": "^5.6.1" }, "scripts": { "prepack": "npmignore --auto --commentLines=auto", - "test": "tape test/*.js" + "test": "nyc tape test/*.js" }, "testling": { "files": "test/*.js",