Skip to content

Commit 470a33a

Browse files
author
Alexey Litvinov
committed
coverage report
1 parent 3dfdca9 commit 470a33a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
.gitignore
44
.npmignore
55
.travis.yml
6+
coverage
67
demo

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"build": "babel lib --out-dir lib && babel preset.js --out-file preset.js",
1111
"test": "npm run test:babel",
1212
"test:babel": "NODE_PATH=$(pwd)/test/tokens/node_modules $npm_package_scripts_test_unit --compilers js:babel-register",
13+
"test:coverage": "NODE_PATH=$(pwd)/test/tokens/node_modules babel-node --presets es2015 `npm bin`/isparta cover --report text --report html `npm bin`/_mocha -- --require test/setup.js --ui tdd test/*/*.js",
1314
"test:node": "NODE_PATH=$(pwd)/test/tokens/node_modules $npm_package_scripts_test_unit --harmony_destructuring --harmony_spread_arrays --use_strict",
1415
"test:watch": "NODE_PATH=$(pwd)/test/tokens/node_modules $npm_package_scripts_test_unit --watch --harmony_destructuring --harmony_spread_arrays --use_strict",
1516
"test:unit": "mocha --require test/setup.js --ui tdd test/*/*.js"
@@ -51,6 +52,7 @@
5152
"babel-cli": "^6.5.1",
5253
"babel-preset-es2015": "^6.5.0",
5354
"babel-register": "^6.5.2",
55+
"isparta": "^4.0.0",
5456
"mocha": "^2.4.5",
5557
"sinon": "^1.17.3"
5658
}

0 commit comments

Comments
 (0)