Fix tests
This commit is contained in:
@ -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;
|
||||||
|
Reference in New Issue
Block a user