Skip to content

Commit 79affde

Browse files
committed
added text decoder to jest config file to resolve textEncoder error in Jest testing environment
1 parent 187b55a commit 79affde

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jest.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
const { TextEncoder } = require('util');
1+
const { TextEncoder, TextDecoder } = require('util');
22
module.exports = {
33
globals: {
44
TextEncoder: TextEncoder,
5+
TextDecoder: TextDecoder
56
},
67
transform: {
78
'^.+\\.(js|ts|tsx)$': 'ts-jest',

0 commit comments

Comments
 (0)