Skip to content

Commit

Permalink
Force global.crypto override
Browse files Browse the repository at this point in the history
  • Loading branch information
florianduros committed Jun 14, 2023
1 parent daa6f97 commit d2ae9ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/setupTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import * as crypto from "crypto";
global.DOMException = DOMException as typeof global.DOMException;
// Set node crypto into global.crypto
// Needed in `CryptoApi#createRecoveryKeyFromPassphrase` and `crypto/crypto.ts`
// @ts-ignore
global.crypto = crypto.webcrypto as typeof global.crypto;

jest.mock("../src/http-api/utils", () => ({
Expand Down

0 comments on commit d2ae9ae

Please sign in to comment.