-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Correcting mockClear api docs #12019
Conversation
@SimenB please review |
@Biki-das It makes sense. Could you add |
i am kinds confused where should i add it |
Oh, sorry. Right now it states: "Clears the Or I mixed up something? |
Codecov Report
@@ Coverage Diff @@
## main #12019 +/- ##
=======================================
Coverage 68.77% 68.77%
=======================================
Files 324 324
Lines 16669 16669
Branches 4813 4813
=======================================
Hits 11464 11464
Misses 5172 5172
Partials 33 33 Continue to review full report at Codecov.
|
/review @SimenB |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
Prettier is unhappy, could you run |
sure |
@SimenB i want to thank you , you are really a nice person to work with,😊😊 |
Co-authored-by: Simen Bekkhus <[email protected]>
@SimenB sorry for the issue! Hope it's fine now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perfect, thanks again!
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Documentation page:
https://jestjs.io/docs/mock-function-api#mockfnmockclear
Summary
mock.mockClear()
andclearMocks:true
are reseting ``mock.calls,mock.instances
and `mock.results` of a mock function not only the first two ones that doc say