Skip to content

Commit

Permalink
chore: fix tests missing crypto
Browse files Browse the repository at this point in the history
  • Loading branch information
rolznz committed Dec 7, 2023
1 parent ba08367 commit 1960773
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions setupJest.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import * as crypto from "crypto";
// eslint-disable-next-line @typescript-eslint/no-explicit-any
globalThis.crypto = crypto as any;

import jestFetchMock from "jest-fetch-mock";

jestFetchMock.enableMocks();

0 comments on commit 1960773

Please sign in to comment.