diff --git a/client-sdk/ts-web/core/test/hdkey.test.ts b/client-sdk/ts-web/core/test/hdkey.test.ts index 5baf60f0bd..d3f63ffb36 100644 --- a/client-sdk/ts-web/core/test/hdkey.test.ts +++ b/client-sdk/ts-web/core/test/hdkey.test.ts @@ -1,8 +1,16 @@ +import {webcrypto} from 'crypto'; + import {HDKey} from '../src/hdkey'; import {concat, toHex} from '../src/misc'; import {WebCryptoSigner} from '../src/signature'; + import * as adr0008VectorsRaw from './adr-0008-vectors.json'; +if (typeof crypto === 'undefined') { + // @ts-expect-error there are some inconsequential type differences + globalThis.crypto = webcrypto; +} + interface Adr0008Vector { kind: string; bip39_mnemonic: string;