test: remove paragon, react and i18n mocks and added when needed

This commit is contained in:
diana-villalvazo-wgu
2025-06-30 16:15:52 -06:00
parent fdc58a671a
commit d542fb84b6
20 changed files with 177 additions and 244 deletions

View File

@@ -30,6 +30,10 @@ jest.mock('data/redux/hooks', () => ({
useClearRequest: jest.fn(),
useEmailConfirmationData: jest.fn(),
}));
jest.mock('react', () => ({
...jest.requireActual('react'),
useContext: jest.fn(context => context),
}));
const moduleKeys = keyStore(apiHooks);
const testString = 'TEST-string';