Update enzyme config files
parent
7e4c12efff
commit
d313e11a1f
|
@ -0,0 +1,3 @@
|
|||
global.requestAnimationFrame = function (callback) {
|
||||
setTimeout(callback, 0);
|
||||
};
|
|
@ -1 +1,7 @@
|
|||
Object.defineProperty(window, 'requestAnimationFrame', { value: fn => fn() });
|
||||
import { configure } from 'enzyme';
|
||||
import Adapter from 'enzyme-adapter-react-16';
|
||||
|
||||
configure({
|
||||
adapter: new Adapter(),
|
||||
disableLifecycleMethods: true,
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue