From 19607730e3a32f1c53314e0db8c4fd1ecf9088bf Mon Sep 17 00:00:00 2001 From: Roland Bewick Date: Thu, 7 Dec 2023 14:03:42 +0700 Subject: [PATCH] chore: fix tests missing crypto --- setupJest.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setupJest.ts b/setupJest.ts index 1d5b38c..45a75ae 100644 --- a/setupJest.ts +++ b/setupJest.ts @@ -1,3 +1,7 @@ +import * as crypto from "crypto"; +// eslint-disable-next-line @typescript-eslint/no-explicit-any +globalThis.crypto = crypto as any; + import jestFetchMock from "jest-fetch-mock"; jestFetchMock.enableMocks();