You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like repl.it is using an older version of jest (22.1.2) but I was able to repro this issue with the following config on my local machine and also via a run with npx [email protected]
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
🐛 Bug Report
mockImplementationOnce does not override a default implementation set with a beforeEach like mockImplementation does
To Reproduce
See the repl link below
Expected behavior
I would expect the calls to mockImlementationOnce would have the same effect as mockImplementation in this scenario
Link to repl or repo (highly encouraged)
https://repl.it/@cdanielsen/Possible-jest-mockImplementationOnce-bug
Run
npx envinfo --preset jest
Looks like repl.it is using an older version of jest (22.1.2) but I was able to repro this issue with the following config on my local machine and also via a run with
npx [email protected]
The text was updated successfully, but these errors were encountered: