Skip to content

Commit

Permalink
Added babel-plugin-transform-class-properties to jest.
Browse files Browse the repository at this point in the history
Tests were failing if you tried to mount component which is setting state outside class constructor.
  • Loading branch information
Hyperkid123 committed Dec 5, 2018
1 parent cc934f4 commit f412d11
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"env": {
"test": {
"presets": [
"react",
"react"
],
"plugins": ["transform-es2015-modules-commonjs"],
},
},
"plugins": ["transform-es2015-modules-commonjs", "babel-plugin-transform-class-properties"]
}
}
}

0 comments on commit f412d11

Please sign in to comment.