Skip to content

Commit

Permalink
Added additional Enzyme compat config for recent versions of React 15
Browse files Browse the repository at this point in the history
  • Loading branch information
insin committed Sep 20, 2017
1 parent d0ff1de commit 5172ccd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
## Added

- Added [`babel.env` config](https://github.com/insin/nwb/blob/master/docs/Configuration.md#env-object) to pass additional [options for `babel-preset-env`](https://github.com/babel/babel-preset-env#options).
- Added additional Enzyme compat config for recent versions of React 15.

## Changed

Expand Down
1 change: 1 addition & 0 deletions src/createWebpackConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,7 @@ export const COMPAT_CONFIGS = {
'react/addons': true,
'react/lib/ExecutionEnvironment': true,
'react/lib/ReactContext': true,
'react-addons-test-utils': 'react-dom',
}
},
intl(options: {locales: string[]}) {
Expand Down

0 comments on commit 5172ccd

Please sign in to comment.