Skip to content

A full-featured CRM built with React, shadcn/ui, and Supabase.

automatically silent fake rest provider during test

ThieryMichel02314c836560
diff --git a/src/test/StoryWrapper.tsx b/src/test/StoryWrapper.tsx
index 74a6f70e..5ff8ecb6 100644
--- a/src/test/StoryWrapper.tsx
+++ b/src/test/StoryWrapper.tsx
@@ -80,7 +80,7 @@ export const StoryWrapper = ({
data,
dataProvider: dataProviderOverrides,
initialEntries,
- silent,
+ silent = import.meta.env.MODE === "test",
}: {
children: ReactNode;
data?: Partial<Db>;