Jest
Last updated
Was this helpful?
Last updated
Was this helpful?
when you mocking 3rd party lib and wanna clear mock state(or data) you should use jest.clearAllMocks()
instead of `jest.restoreAllMocks()` or `jest.resetAllMocks()`
because we can't just restore 3rd party library statement. we should re-init instance.