Skip to content

Commit

Permalink
Update to Enzyme 3.x. (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcenizal committed Dec 7, 2017
1 parent 3da695d commit 8b73cf2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/dev/jest/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"setupFiles": [
"<rootDir>/src/dev/jest/setup/babel_polyfill.js",
"<rootDir>/src/dev/jest/setup/request_animation_frame_polyfill.js"
"<rootDir>/src/dev/jest/setup/request_animation_frame_polyfill.js",
"<rootDir>/src/dev/jest/setup/enzyme.js"
],
"coverageDirectory": "<rootDir>/target/jest-coverage",
Expand Down
4 changes: 4 additions & 0 deletions src/jest/setup/enzyme.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 8b73cf2

Please sign in to comment.