diff --git a/packages/snaps-controllers/src/snaps/SnapController.test.ts b/packages/snaps-controllers/src/snaps/SnapController.test.ts index 55fffa54b0..406fa068c6 100644 --- a/packages/snaps-controllers/src/snaps/SnapController.test.ts +++ b/packages/snaps-controllers/src/snaps/SnapController.test.ts @@ -109,6 +109,7 @@ if (!('CryptoKey' in globalThis)) { }); } +globalThis.crypto ??= webcrypto as typeof globalThis.crypto; globalThis.crypto.getRandomValues = ( array: Type, ) => {