From 4fec77c77c8d1338e4c6cd24558d08e4d90388e8 Mon Sep 17 00:00:00 2001 From: ivababukova Date: Thu, 5 Oct 2023 10:41:23 +0300 Subject: [PATCH] add back jestShim Signed-off-by: ivababukova --- src/__test__/test-utils/jestShim.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/__test__/test-utils/jestShim.js diff --git a/src/__test__/test-utils/jestShim.js b/src/__test__/test-utils/jestShim.js new file mode 100644 index 0000000000..05d439cc8f --- /dev/null +++ b/src/__test__/test-utils/jestShim.js @@ -0,0 +1,10 @@ +/** + * This file is required for jest to work with '@wojtekmaj/enzyme-adapter-react-17' + * module. + */ +import { + TextDecoder, TextEncoder, +} from 'util'; + +global.TextEncoder = TextEncoder; +global.TextDecoder = TextDecoder;