Remove the IndexedDB warning when running tests in jest

This commit is contained in:
Aria Minaei 2023-01-15 17:38:30 +01:00
parent 9ec9bed80e
commit edd89b972b

View file

@ -358,7 +358,8 @@ export class Studio {
// Check for support. // Check for support.
if (!('indexedDB' in window)) { 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 { return {
getAssetUrl: (assetId: string) => { getAssetUrl: (assetId: string) => {