Skip to content

Commit

Permalink
Merge pull request #9 from omnia-network/chore/update-dependencies
Browse files Browse the repository at this point in the history
chore: update dependencies
  • Loading branch information
ilbertt authored Oct 31, 2024
2 parents 0649549 + 8ab34c0 commit bd26362
Show file tree
Hide file tree
Showing 5 changed files with 941 additions and 1,005 deletions.
2 changes: 1 addition & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ const config: Config = {
// snapshotSerializers: [],

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

// Options that will be passed to the testEnvironment
testEnvironmentOptions: {
Expand Down
10 changes: 3 additions & 7 deletions jest.setup.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
import "isomorphic-fetch";
import crypto from "isomorphic-webcrypto";
import util from 'util';

// @ts-ignore
global?.TextEncoder = util.TextEncoder;
// @ts-ignore
global?.TextDecoder = util.TextDecoder;
import { TransformStream } from "web-streams-polyfill";

Object.defineProperty(globalThis, 'crypto', {
value: {
getRandomValues: crypto.getRandomValues,
subtle: crypto.subtle,
}
});

global.TransformStream = TransformStream;
Loading

0 comments on commit bd26362

Please sign in to comment.