We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa4796a commit 598dbe6Copy full SHA for 598dbe6
1 file changed
packages/wallet/src/Wallet.test.ts
@@ -24,6 +24,13 @@ describe('Wallet', () => {
24
// We can remove this once we drop Node 18
25
// eslint-disable-next-line n/no-unsupported-features/node-builtins
26
globalThis.crypto ??= webcrypto as typeof globalThis.crypto;
27
+
28
+ // eslint-disable-next-line no-restricted-syntax
29
+ if (!('CryptoKey' in globalThis)) {
30
+ Object.defineProperty(globalThis, 'CryptoKey', {
31
+ value: webcrypto.CryptoKey,
32
+ });
33
+ }
34
});
35
36
it('exposes state', async () => {
0 commit comments