test: dedupe growthbook mock in show-settings

This commit is contained in:
Mrugesh Mohapatra
2026-05-29 09:18:54 +05:30
parent eac37403f9
commit 9f6c6d11f0

View File

@@ -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;