From 1801b24389baa8e3f7298ff2c41e2512b19c1290 Mon Sep 17 00:00:00 2001 From: Einav Weiss Keidar Date: Mon, 13 Aug 2018 16:19:46 +0300 Subject: react 16 upgrade Issue-ID: SDC-1762 Change-Id: I7701f12fc63bb09f8c985c7c893b984701dcbfab Signed-off-by: Einav Keidar --- openecomp-ui/test-utils/shim.js | 1 + openecomp-ui/test-utils/test-setup.js | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 openecomp-ui/test-utils/shim.js (limited to 'openecomp-ui/test-utils') 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(); -- cgit 1.2.3-korg