-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"jest.resetAllMocks();" does not work #83
Comments
Can you link to the code you're using? I don't have enough context from this to understand the problem. |
for instance, you could add a test in this project and try to use
|
I'll try to take a look. Feel free to create a PR that fails this way. |
I was hoping that adding |
Thanks @daniellizik that worked for me. More specifically, I'm surprised this has been open for years now, when all that needs to be done is to update the documentation. |
in the README, you say that
jest.resetAllMocks
works, but it does not, if I use it, the__STORE__
is always empty even if IsetItem()
in my testslocalStorage.clear();
for instance works as expectedbut when I use
jest.resetAllMocks
(to clear other mocks of my test) in combination tolocalStorage.clear();
, it does not work anymoreI'm running
jest
v23.4.2The text was updated successfully, but these errors were encountered: