mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-01 02:55:56 +01:00
15 lines
362 B
TypeScript
15 lines
362 B
TypeScript
import "raf/polyfill";
|
|
import Enzyme from "enzyme";
|
|
import Adapter from "enzyme-adapter-react-16";
|
|
|
|
// Temporary hack to suppress error
|
|
// https://github.com/facebook/create-react-app/issues/3199#issuecomment-345024029
|
|
window.requestAnimationFrame = function(callback) {
|
|
setTimeout(callback, 0);
|
|
return 0;
|
|
};
|
|
|
|
Enzyme.configure({
|
|
adapter: new Adapter()
|
|
});
|