diff --git a/.babelrc b/.babelrc index d062879c2e..9f41d3bc8b 100644 --- a/.babelrc +++ b/.babelrc @@ -18,7 +18,7 @@ "env": { "test": { "plugins": [ - ["__coverage__", { "only": "src/" }] + ["istanbul", { "include": ["src"] }] ] } } diff --git a/karma.conf.js b/karma.conf.js index e9295d2a70..6fba82be8b 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -46,6 +46,7 @@ module.exports = (karmaConfig) => { singleRun: true, preprocessors: { // do not include 'coverage' preprocessor for karma-coverage + // TODO // code is already instrumented by babel-plugin-__coverage__ './test/tests.bundle.js': ['webpack'], }, diff --git a/package.json b/package.json index 3399f776b7..a67a0c2744 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,7 @@ "babel-core": "^6.21.0", "babel-eslint": "^7.0.0", "babel-loader": "^7.0.0", - "babel-plugin-__coverage__": "^11.0.0", + "babel-plugin-istanbul": "^4.1.4", "babel-plugin-lodash": "^3.2.10", "babel-plugin-react-transform": "^2.0.2", "babel-plugin-transform-react-handled-props": "^0.2.3",