Skip to content

Commit

Permalink
Resolved raf warning in the test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Kim committed Dec 20, 2017
1 parent a23d960 commit e12e0fe
Show file tree
Hide file tree
Showing 3 changed files with 1,568 additions and 1,629 deletions.
4 changes: 1 addition & 3 deletions jest-setup.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import 'raf/polyfill';
import Enzyme from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';

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

window.React = require('react');

// Monkey patch RAF until jest does
window.requestAnimationFrame = callback => window.setTimeout(callback, 0);
Loading

0 comments on commit e12e0fe

Please sign in to comment.