Skip to content

Commit d2ae9ae

Browse files
committed
Force global.crypto override
1 parent daa6f97 commit d2ae9ae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/setupTests.ts

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import * as crypto from "crypto";
2020
global.DOMException = DOMException as typeof global.DOMException;
2121
// Set node crypto into global.crypto
2222
// Needed in `CryptoApi#createRecoveryKeyFromPassphrase` and `crypto/crypto.ts`
23+
// @ts-ignore
2324
global.crypto = crypto.webcrypto as typeof global.crypto;
2425

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

0 commit comments

Comments
 (0)