Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Updates how the tests and the coverage are generated
Exchanges iSparta to nyc along with babel-plugin-istanbull
Updates to Mocha 3.0
This will bring down the coverage slightly from before but it will be more correct now
  • Loading branch information
dlmr committed Aug 16, 2016
1 parent f90db76 commit d5e9f5d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .babelrc
@@ -1,4 +1,9 @@
{
"env": {
"test": {
"plugins": ["babel-plugin-istanbul"]
}
},
"plugins": [
"babel-plugin-transform-object-rest-spread",
"babel-plugin-transform-es2015-spread",
Expand Down
23 changes: 19 additions & 4 deletions package.json
Expand Up @@ -22,7 +22,7 @@
"clean": "rimraf lib esdocs coverage",
"lint": "eslint .",
"test": "npm run lint && npm run test:coverage",
"test:coverage": "cross-env NODE_ENV=test babel-node node_modules/isparta/bin/isparta cover node_modules/mocha/bin/_mocha -- --recursive test/",
"test:coverage": "cross-env NODE_ENV=test nyc npm run test:unit",
"test:unit": "cross-env NODE_ENV=test mocha --compilers js:babel-register test --recursive",
"test:unit:watch": "npm run test:unit -- --watch",
"check": "ncu",
Expand Down Expand Up @@ -53,6 +53,7 @@
"devDependencies": {
"babel-cli": "~6.4.5",
"babel-eslint": "~6.1.2",
"babel-plugin-istanbul": "1.0.3",
"babel-plugin-transform-async-to-generator": "6.8.0",
"babel-plugin-transform-es2015-destructuring": "~6.4.0",
"babel-plugin-transform-es2015-function-name": "~6.4.0",
Expand All @@ -74,10 +75,10 @@
"eslint-config-airbnb-base": "~4.0.0",
"eslint-plugin-babel": "~3.3.0",
"eslint-plugin-import": "~1.10.2",
"expect": "~1.13.4",
"isparta": "~4.0.0",
"mocha": "~2.4.4",
"expect": "~1.20.2",
"mocha": "~3.0.2",
"npm-check-updates": "~2.5.6",
"nyc": "7.1.0",
"rimraf": "~2.5.0"
},
"dependencies": {
Expand Down Expand Up @@ -106,5 +107,19 @@
"trim-newlines": "~1.0.0",
"unzip": "^0.1.11",
"update-notifier": "0.6.3"
},
"nyc": {
"include": [
"src/**/*.js"
],
"require": [
"babel-register"
],
"reporter": [
"lcov",
"text-summary"
],
"sourceMap": false,
"instrument": false
}
}

0 comments on commit d5e9f5d

Please sign in to comment.