mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-03 01:01:13 -04:00
test: dedupe growthbook mock in show-settings
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user