Skip to content

Commit 59fd8a0

Browse files
committed
add coverage
1 parent 82f31fe commit 59fd8a0

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/example/dist
33
/example/.cache
44
/lib
5+
/coverage
56
node_modules
67
package-lock.json
78
pnpm-lock.yaml

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"@types/mocha": "^5.2.7",
3838
"@types/node": "^10.5.2",
3939
"@types/react": "16.9.49",
40+
"c8": "^7.11.0",
4041
"mocha": "^6.2.0",
4142
"prettier": "^2.1.2",
4243
"react": "16.13.1",
@@ -55,6 +56,7 @@
5556
"compile": "npm run compile-cjs && npm run compile-es6",
5657
"compile-cjs": "tsc --module commonjs --outDir ./lib/cjs",
5758
"compile-es6": "echo 'TODO' : tsc --module es6 --outDir ./lib/es6",
59+
"coverage": "c8 --reporter=lcov npm test",
5860
"prepublishOnly": "npm run compile",
5961
"test": "mocha test/*.ts --require ts-node/register --recursive"
6062
}

0 commit comments

Comments
 (0)