Skip to content

Commit a394857

Browse files
committed
Add test coverage flag.
1 parent 60b7c4b commit a394857

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"build": "echo 'Nothing to build'",
1616
"postbuild": "cp *.js README.md LICENSE NOTICE package.json lib",
1717
"lint": "eslint .",
18-
"test": "node --test",
18+
"pretest": "node -e \"require('fs').mkdirSync('coverage', { recursive: true })\"",
19+
"test": "node --test --experimental-test-coverage --test-reporter=lcov --test-reporter-destination=coverage/lcov.info",
1920
"prepare": "husky install"
2021
},
2122
"peerDependencies": {

0 commit comments

Comments
 (0)