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 8d4e338 commit 4b42518Copy full SHA for 4b42518
src/renderer/__helpers__/jest.setup.ts
@@ -1,6 +1,6 @@
1
import { TextDecoder, TextEncoder } from 'node:util';
2
3
-// Prevent "ReferenceError: TextEncoder is not defined" error
+// Prevent "ReferenceError: TextEncoder is not defined" or "ReferenceError: TextDecoder is not defined" errors
4
global.TextEncoder = TextEncoder;
5
global.TextDecoder = TextDecoder;
6
0 commit comments