From edd89b972bf83d9160a8a2204af9586cbeb10eca Mon Sep 17 00:00:00 2001 From: Aria Minaei Date: Sun, 15 Jan 2023 17:38:30 +0100 Subject: [PATCH] Remove the IndexedDB warning when running tests in jest --- theatre/studio/src/Studio.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/theatre/studio/src/Studio.ts b/theatre/studio/src/Studio.ts index 2511443..edd3cf1 100644 --- a/theatre/studio/src/Studio.ts +++ b/theatre/studio/src/Studio.ts @@ -358,7 +358,8 @@ export class Studio { // Check for support. if (!('indexedDB' in window)) { - console.log("This browser doesn't support IndexedDB.") + if (process.env.NODE_ENV !== 'test') + console.log("This browser doesn't support IndexedDB.") return { getAssetUrl: (assetId: string) => {