We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3e4162 commit 038167dCopy full SHA for 038167d
app/setUpJestClient.js
@@ -1,7 +1,10 @@
1
/* eslint-disable import/no-extraneous-dependencies */
2
import '@testing-library/jest-dom';
3
+import { TextEncoder, TextDecoder } from 'util';
4
import Adapter from '@cfaester/enzyme-adapter-react-18';
5
6
+Object.assign(global, { TextDecoder, TextEncoder });
7
+
8
const { configure } = require('enzyme');
9
10
configure({ adapter: new Adapter() });
0 commit comments