diff --git a/src/setup-tests.ts b/src/setup-tests.ts index 73338ed..5fe7cab 100644 --- a/src/setup-tests.ts +++ b/src/setup-tests.ts @@ -94,5 +94,5 @@ resetMocks() global.chrome = chrome -global.crypto.subtle = webcrypto.subtle -global.crypto.randomUUID = randomUUID +if (!global?.crypto?.subtle) global.crypto.subtle = webcrypto.subtle +if (!global?.crypto?.randomUUID) global.crypto.randomUUID = randomUUID