Skip to content
This repository was archived by the owner on Aug 19, 2022. It is now read-only.

Commit 9e5b52e

Browse files
committed
Update Infra #969 - Replace isparta with istanbul
1 parent c88b0f1 commit 9e5b52e

File tree

4 files changed

+288
-78
lines changed

4 files changed

+288
-78
lines changed

.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
"plugins": [
1818
"transform-decorators-legacy"
1919
]
20-
}
20+
},
2121
}
2222
}

karma.conf.js

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
const path = require('path');
22

3-
// Note: If we switch to ESM version of babelified files, we'll likely need to
4-
// update from the ancient isparta-loader. Likely we'll switch to:
5-
// https://github.com/istanbuljs/babel-plugin-istanbul with a `test` BABEL_ENV
6-
//
7-
// https://github.com/FormidableLabs/radium/issues/969
83
process.env.BABEL_ENV = 'commonjs';
94

105
module.exports = function(config) {
@@ -34,17 +29,15 @@ module.exports = function(config) {
3429
include: path.resolve('src/__tests__/'),
3530
loader: 'babel-loader'
3631
},
37-
{
38-
test: /\.js$/,
39-
include: path.resolve('src/'),
40-
enforce: 'pre',
41-
exclude: /(__tests__|__mocks__)/,
42-
loader: 'isparta-loader?babel-loader'
43-
},
4432
{
4533
test: /\.js$/,
4634
exclude: [/node_modules/],
47-
loader: 'babel-loader'
35+
use: {
36+
loader: 'babel-loader',
37+
options: {
38+
plugins: ['istanbul']
39+
}
40+
}
4841
},
4942
{
5043
test: /\.css$/,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
},
7575
"devDependencies": {
7676
"babel-eslint": "^7.1.1",
77+
"babel-plugin-istanbul": "^5.1.0",
7778
"caniuse-api": "^2.0.0",
7879
"chai": "^3.5.0",
7980
"color": "^1.0.3",
@@ -89,7 +90,6 @@
8990
"express-http-proxy": "^0.11.0",
9091
"flow-bin": "^0.53.1",
9192
"inject-loader": "^3.0.1",
92-
"isparta-loader": "^2.0.0",
9393
"jsdom": "^12.0.0",
9494
"jsdom-global": "^3.0.2",
9595
"karma": "^3.0.0",

0 commit comments

Comments
 (0)