From 9f6c6d11f08d8e7034ffb10c4b79dc79b8a8d2f3 Mon Sep 17 00:00:00 2001 From: Mrugesh Mohapatra Date: Fri, 29 May 2026 09:18:54 +0530 Subject: [PATCH] test: dedupe growthbook mock in show-settings --- client/src/client-only-routes/show-settings.test.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/client/src/client-only-routes/show-settings.test.tsx b/client/src/client-only-routes/show-settings.test.tsx index d22e80d42c2..90c362825eb 100644 --- a/client/src/client-only-routes/show-settings.test.tsx +++ b/client/src/client-only-routes/show-settings.test.tsx @@ -11,14 +11,12 @@ const testUsername = 'testuser'; vi.mock('../analytics'); vi.mock('@growthbook/growthbook-react', () => ({ + useFeature: () => ({ on: false }), useFeatureIsOn: () => false, IfFeatureEnabled: ({ children: _children }: { children: React.ReactNode }) => null })); vi.mock('../utils/get-words'); -vi.mock('@growthbook/growthbook-react', () => ({ - useFeature: () => ({ on: false }) -})); const { apiLocation } = envData;