Skip to content

Commit

Permalink
#290 Configure enzyme for React 16
Browse files Browse the repository at this point in the history
  • Loading branch information
zaki-yama committed Feb 20, 2019
1 parent 53b68b1 commit 4668ef4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
},
"jest": {
"testRegex": "(/test/.*|\\.(test|spec))\\.js$",
"setupFilesAfterEnv": ["<rootDir>/test/setupTests.js"],
"collectCoverage": true
}
}
4 changes: 4 additions & 0 deletions test/setupTests.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { configure } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';

configure({ adapter: new Adapter() });

0 comments on commit 4668ef4

Please sign in to comment.