Skip to content

Commit d004fc9

Browse files
committed
fixed textEncoder is not defined error
1 parent 79affde commit d004fc9

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

jest.config.js

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

src/backend/__tests__/linkFiber.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/**
2+
* @jest-environment node
3+
*/
14
import linkFiberInitialization from '../routers/linkFiber';
25
import timeJumpInitialization from '../controllers/timeJump';
36
import componentActionsRecord from '../models/masterState';

src/backend/__tests__/routes.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/**
2+
* @jest-environment node
3+
*/
14
import { JSDOM } from 'jsdom';
25

36
import { Routes, Route } from '../models/routes';

0 commit comments

Comments
 (0)