Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update dependencies #9

Merged
merged 2 commits into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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