I have a manual mock for a scoped module (that is, a file inside the mocks directory), basically a fork of Chakra UI, which according to the docs is automatically mocked for every test. That works fine, but let's say I want to use the actual module for some test, how can I do that?
I'm not sure if it's important to see the code for the manual mock itself but it's just exporting a couple functions right now like so:
export const useToast = jest.fn();
export const Box = jest.fn();
The test merely renders children inside two Boxes with particular styles, but Box always comes out as jest.fn(). I feel like I've tried everything: unmock, re-mocking with mock and requireActual, mockImplementation but nothing seems to work. It always uses the manual mock. Any ideas? Thanks.