Skip to content

Commit ec7e5aa

Browse files
committed
➕ [#114] changed istanbul-instrumenter-loader to babel-plugin-istanbul in npm
1 parent 51ee4ee commit ec7e5aa

File tree

5 files changed

+1709
-1918
lines changed

5 files changed

+1709
-1918
lines changed

.babelrc

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"presets": [
3-
"@babel/preset-env",
4-
]
3+
"@babel/preset-env"
4+
],
5+
"env": {
6+
"test": {
7+
"plugins": [ "istanbul" ]
8+
}
9+
}
510
}

karma.conf.js

-12
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,6 @@ const webpackConfig = require('./webpack.config.js');
44
// Prevent testing infrastructure from crashing (MIGHT REQUIRE --production --sourcemap NOT TO BE SET!
55
webpackConfig.output.library = undefined;
66

7-
// Add istanbul-instrumenter to webpack configuration
8-
webpackConfig.module.rules.push({
9-
test: /\.js$/,
10-
include: __dirname + '/' + paths.jsSrcDir,
11-
loader: 'istanbul-instrumenter-loader',
12-
enforce: 'post',
13-
14-
options: {
15-
esModules: true
16-
}
17-
});
18-
197

208
// The preprocessor config
219
const preprocessors = {};

0 commit comments

Comments
 (0)