summaryrefslogtreecommitdiffstats
path: root/openecomp-ui/test-utils
diff options
context:
space:
mode:
Diffstat (limited to 'openecomp-ui/test-utils')
-rw-r--r--openecomp-ui/test-utils/shim.js1
-rw-r--r--openecomp-ui/test-utils/test-setup.js4
2 files changed, 5 insertions, 0 deletions
diff --git a/openecomp-ui/test-utils/shim.js b/openecomp-ui/test-utils/shim.js
new file mode 100644
index 0000000000..8cd4c2098a
--- /dev/null
+++ b/openecomp-ui/test-utils/shim.js
@@ -0,0 +1 @@
+global.requestAnimationFrame = callback => setTimeout(callback, 0);
diff --git a/openecomp-ui/test-utils/test-setup.js b/openecomp-ui/test-utils/test-setup.js
index ec3ca72fc5..0c4e01cf8a 100644
--- a/openecomp-ui/test-utils/test-setup.js
+++ b/openecomp-ui/test-utils/test-setup.js
@@ -1,2 +1,6 @@
import mockRest from 'test-utils/MockRest.js';
+import Enzyme from 'enzyme';
+import Adapter from 'enzyme-adapter-react-16';
+
+Enzyme.configure({ adapter: new Adapter() });
mockRest.resetQueue();