diff --git a/setupJest.ts b/setupJest.ts index 45a75ae..4edaa7c 100644 --- a/setupJest.ts +++ b/setupJest.ts @@ -1,6 +1,8 @@ import * as crypto from "crypto"; -// eslint-disable-next-line @typescript-eslint/no-explicit-any -globalThis.crypto = crypto as any; +if (!globalThis.crypto) { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + globalThis.crypto = crypto as any; +} import jestFetchMock from "jest-fetch-mock";