-
Today I learned:
jest.requireActualallows you to override bits of mocks with the actual implementation 🤯 So useful for manual mocks where most of the module needs to be mocked but we need one function to do the real thing!
jest.requireActual allows you to override bits of mocks with the actual implementation 🤯 So useful for manual mocks where most of the module needs to be mocked but we need one function to do the real thing!