I have a React app with some jest tests. I am doing this mock in several tests:
// test1.test.tsx jest.mock(\'_state/Provider\', () => ({ useSth: () =>