Skip to content

Commit 2c1ea72

Browse files
committed
Add test:cov to npm scripts
1 parent 351163d commit 2c1ea72

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
node_modules
22
npm-debug.log
33
.DS_Store
4-
lib
4+
lib
5+
coverage

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"prepublish": "npm run clean && npm run build",
1111
"start": "cd examples && node server.js",
1212
"test": "NODE_ENV=test mocha --compilers js:babel/register --recursive",
13-
"test:watch": "npm run test -- --watch"
13+
"test:watch": "npm run test -- --watch",
14+
"test:cov": "istanbul cover node_modules/.bin/_mocha -- --compilers js:babel/register --recursive"
1415
},
1516
"repository": {
1617
"type": "git",
@@ -41,6 +42,7 @@
4142
"eslint": "^0.22.1",
4243
"eslint-plugin-react": "^2.3.0",
4344
"expect": "^1.6.0",
45+
"istanbul": "^0.3.15",
4446
"mocha": "^2.2.5",
4547
"react": "^0.13.0",
4648
"react-hot-loader": "^1.2.7",

0 commit comments

Comments
 (0)