npm run test:cover
1 parent d58b852 commit befe4abCopy full SHA for befe4ab
3 files changed
.gitignore
@@ -2,4 +2,6 @@ node_modules/
2
dist/
3
build/
4
package-lock.json
5
+.nyc_output/
6
+coverage/
7
.nycrc.json
@@ -0,0 +1,7 @@
1
+{
+ "include": ["src/**/*.ts"],
+ "extension": [".ts"],
+ "reporter": ["text", "html"],
+ "sourceMap": true,
+ "instrument": true
+}
package.json
@@ -4,7 +4,8 @@
"description": "MessagePack implementation in JavaScript",
"main": "index.js",
"scripts": {
- "test": "TS_NODE_FILES=true mocha 'test/**/*.test.ts'"
+ "test": "TS_NODE_FILES=true mocha 'test/**/*.test.ts'",
8
+ "test:cover": "TS_NODE_FILES=true npx nyc mocha 'test/**/*.test.ts'"
9
},
10
"repository": {
11
"type": "git",
0 commit comments