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;