Skip to content

Commit e39d698

Browse files
committed
test: update setup comment
Signed-off-by: Adam Setch <[email protected]>
1 parent 1f8ef91 commit e39d698

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/renderer/__helpers__/jest.setup.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import { TextDecoder, TextEncoder } from 'node:util';
22

3-
// Prevent "ReferenceError: TextEncoder is not defined" or "ReferenceError: TextDecoder is not defined" errors
3+
/**
4+
* Prevent the following errors with jest:
5+
* - ReferenceError: TextEncoder is not defined
6+
* - ReferenceError: TextDecoder is not defined
7+
*/
48
if (!global.TextEncoder || !global.TextDecoder) {
59
global.TextEncoder = TextEncoder;
610
global.TextDecoder = TextDecoder;

0 commit comments

Comments
 (0)