We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
global.crypto
1 parent daa6f97 commit d2ae9aeCopy full SHA for d2ae9ae
spec/setupTests.ts
@@ -20,6 +20,7 @@ import * as crypto from "crypto";
20
global.DOMException = DOMException as typeof global.DOMException;
21
// Set node crypto into global.crypto
22
// Needed in `CryptoApi#createRecoveryKeyFromPassphrase` and `crypto/crypto.ts`
23
+// @ts-ignore
24
global.crypto = crypto.webcrypto as typeof global.crypto;
25
26
jest.mock("../src/http-api/utils", () => ({
0 commit comments