Skip to content

Commit bd26362

Browse files
authored
Merge pull request #9 from omnia-network/chore/update-dependencies
chore: update dependencies
2 parents 0649549 + 8ab34c0 commit bd26362

File tree

5 files changed

+941
-1005
lines changed

5 files changed

+941
-1005
lines changed

jest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ const config: Config = {
149149
// snapshotSerializers: [],
150150

151151
// The test environment that will be used for testing
152-
testEnvironment: "jsdom",
152+
testEnvironment: "jest-fixed-jsdom",
153153

154154
// Options that will be passed to the testEnvironment
155155
testEnvironmentOptions: {

jest.setup.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
import "isomorphic-fetch";
21
import crypto from "isomorphic-webcrypto";
3-
import util from 'util';
4-
5-
// @ts-ignore
6-
global?.TextEncoder = util.TextEncoder;
7-
// @ts-ignore
8-
global?.TextDecoder = util.TextDecoder;
2+
import { TransformStream } from "web-streams-polyfill";
93

104
Object.defineProperty(globalThis, 'crypto', {
115
value: {
126
getRandomValues: crypto.getRandomValues,
137
subtle: crypto.subtle,
148
}
159
});
10+
11+
global.TransformStream = TransformStream;

0 commit comments

Comments
 (0)