Fix tests

This commit is contained in:
Joseph Garrone 2024-02-12 23:57:21 +01:00
parent 54b869def1
commit d9c406800a

View File

@ -1 +1 @@
export const isStorybook = Object.keys(window).find(key => key.startsWith("__STORYBOOK")) !== undefined;
export const isStorybook = typeof window === "object" && Object.keys(window).find(key => key.startsWith("__STORYBOOK")) !== undefined;