Skip to content

Understanding mock.restoreAll() and mock.reset() in Node.js Test Runner #54887

Answered by cjihrig
iatsiuk asked this question in General
Discussion options

You must be logged in to vote

You probably want testFn.mock.resetCalls(); instead of mock.reset();

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by iatsiuk
Comment options

You must be logged in to vote
1 reply
@cjihrig
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants