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 |
|
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 <sbekkhus91@gmail.com>
|
@SimenB sorry for the issue! Hope it's fine now |
|
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:trueare reseting ``mock.calls,mock.instancesand `mock.results` of a mock function not only the first two ones that doc say