mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 22:45:45 +01:00
restructure scm-ui and use ui-components and ui-types
This commit is contained in:
12
scm-ui-components/packages/ui-components/src/tests/enzyme.js
Normal file
12
scm-ui-components/packages/ui-components/src/tests/enzyme.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import "raf/polyfill";
|
||||
import { configure } 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;
|
||||
};
|
||||
|
||||
configure({ adapter: new Adapter() });
|
||||
Reference in New Issue
Block a user