Skip to content

Commit 2e573a7

Browse files
committed
chore(package): update deps, add mocha/istanbul and coverage scripts
1 parent b84c939 commit 2e573a7

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

package.json

+7-3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"babel-register": "^6.14.0",
2424
"eslint": "^4.5.0",
2525
"eslint-plugin-prettier": "^2.2.0",
26+
"istanbul": "^0.4.5",
2627
"prettier": "^1.5.3",
2728
"webpack": "^1.13.2",
2829
"webpack-polyfills-plugin": "0.0.9"
@@ -38,15 +39,18 @@
3839
"node": ">=4.0.0"
3940
},
4041
"scripts": {
41-
"test": "nodeunit ./test/node",
42+
"test": "mocha ./test/node",
4243
"build": "webpack --config ./webpack.dist.config.js",
4344
"lint": "eslint lib test",
4445
"format":
45-
"prettier --print-width 100 --tab-width 2 --single-quote --write 'test/**/*.js' 'lib/**/*.js'"
46+
"prettier --print-width 100 --tab-width 2 --single-quote --write 'test/**/*.js' 'lib/**/*.js'",
47+
"coverage":
48+
"istanbul cover _mocha -- --recursive --ui tdd test/node"
4649
},
4750
"browser": "lib/bson/bson.js",
4851
"license": "Apache-2.0",
4952
"dependencies": {
50-
"chai": "^4.1.2"
53+
"chai": "^4.1.2",
54+
"mocha": "^3.5.3"
5155
}
5256
}

0 commit comments

Comments
 (0)