Skip to content

Commit

Permalink
Changed test configuration to .babelrc to prevent duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
weblogixx committed Sep 2, 2016
1 parent 1f57be3 commit ddd63a2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 5 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
],
"env": {
"test": {
"plugins": [ "istanbul" ]
"plugins": [
"transform-decorators-legacy",
"transform-object-rest-spread",
"istanbul"
]
}
}
}
3 changes: 0 additions & 3 deletions conf/webpack/Test.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ class WebpackTestConfig extends WebpackBaseConfig {
{
test: /\.(js|jsx)$/,
loader: 'babel-loader',
query: {
presets: ['airbnb']
},
include: [].concat(
this.includedPackages,
[
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"babel-preset-react": "^6.5.0",
"chai": "^3.5.0",
"copyfiles": "^1.0.0",
"css-loader": "^0.23.1",
"css-loader": "^0.24.0",
"enzyme": "^2.2.0",
"eslint": "^3.0.0",
"eslint-config-airbnb": "^10.0.0",
Expand Down

0 comments on commit ddd63a2

Please sign in to comment.