When is storybook, don't print mock related warning in console

This commit is contained in:
Joseph Garrone
2024-02-11 00:21:04 +01:00
parent 4d67f16e94
commit 05e5e4efec
3 changed files with 19 additions and 2 deletions

3
src/lib/isStorybook.ts Normal file
View File

@ -0,0 +1,3 @@
import { BASE_URL } from "./BASE_URL";
export const isStorybook = BASE_URL.startsWith(".");