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;