Use plugin-babel-istanbul for codecoverage
This commit is contained in:
parent
3fad8cc9a7
commit
406cd33ca2
2
.babelrc
2
.babelrc
@ -3,7 +3,7 @@
|
|||||||
"plugins": ["transform-runtime"],
|
"plugins": ["transform-runtime"],
|
||||||
"env": {
|
"env": {
|
||||||
"test": {
|
"test": {
|
||||||
"sourceMaps": "inline"
|
"plugins": ["istanbul"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,6 +18,7 @@
|
|||||||
"ava": "^0.15.2",
|
"ava": "^0.15.2",
|
||||||
"babel-cli": "^6.0.0",
|
"babel-cli": "^6.0.0",
|
||||||
"babel-helper-fixtures": "^6.6.5",
|
"babel-helper-fixtures": "^6.6.5",
|
||||||
|
"babel-plugin-istanbul": "^1.0.3",
|
||||||
"babel-plugin-transform-class-properties": "^6.6.0",
|
"babel-plugin-transform-class-properties": "^6.6.0",
|
||||||
"babel-plugin-transform-runtime": "^6.0.0",
|
"babel-plugin-transform-runtime": "^6.0.0",
|
||||||
"babel-preset-es2015": "^6.0.0",
|
"babel-preset-es2015": "^6.0.0",
|
||||||
@ -42,5 +43,9 @@
|
|||||||
"test": "npm run build && npm run lint && ava test/",
|
"test": "npm run build && npm run lint && ava test/",
|
||||||
"test_cov": "cross-env BABEL_ENV=test npm run build && npm run lint && nyc ava test/",
|
"test_cov": "cross-env BABEL_ENV=test npm run build && npm run lint && nyc ava test/",
|
||||||
"watch": "babel src --out-dir lib --watch"
|
"watch": "babel src --out-dir lib --watch"
|
||||||
|
},
|
||||||
|
"nyc": {
|
||||||
|
"sourceMap": false,
|
||||||
|
"instrument": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user