Skip to content

Commit 4ac7bec

Browse files
committed
chore: testing test scripts
1 parent d23e26c commit 4ac7bec

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

package.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,15 @@
1414
"test": "tests"
1515
},
1616
"scripts": {
17-
"test": "nyc tape ./tests/unit/*.tests.js && nyc tape ./tests/e2e/*.tests.js",
17+
"test": "npm run cover",
1818
"posttest": "npm run report-coverage",
19-
"test-unit": "nyc tape ./tests/unit/*.tests.js",
20-
"test-e2e": "nyc tape ./tests/e2e/*.tests.js",
21-
"report-coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
19+
"cover": "npm run cover:unit && npm run cover:e2e",
20+
"cover:unit": "nyc --reporter=lcov --silent npm run test-unit",
21+
"cover:e2e": "nyc --reporter=lcov --silent --no-clean npm run test-e2e",
22+
"test-all": "tape ./tests/unit/*.tests.js && tape ./tests/e2e/*.tests.js",
23+
"test-unit": "tape ./tests/unit/*.tests.js",
24+
"test-e2e": "tape ./tests/e2e/*.tests.js",
25+
"report-coverage": "codecov",
2226
"patch-release-git": "git add . && git commit -a -m 'patch release' && git push && npm version patch && npm publish",
2327
"patch-release": "npm version patch && npm publish",
2428
"lint": "eslint --fix **/*.js ./"
@@ -75,7 +79,7 @@
7579
"devDependencies": {
7680
"babel-eslint": "^10.0.3",
7781
"clear-require": "^3.0.0",
78-
"codecov": "^3.6.5",
82+
"codecov": "^3.7.0",
7983
"decache": "4.5.1",
8084
"eslint": "^6.4.0",
8185
"eslint-config-prettier": "^6.3.0",

0 commit comments

Comments
 (0)