-
-
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
docs: updated toHaveBeenCalled #14853
docs: updated toHaveBeenCalled #14853
Conversation
✅ Deploy Preview for jestjs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
…/update-tohavebeencalled
…ul-turing/jest into docs/update-tohavebeencalled
Thanks for sending a PR! I thought this was resolved in #14847 - did we miss anything? |
This PR is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
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!
Oh, could you sign the CLA? |
@SimenB i have signed the CLA. Do let me know if anything else is required. |
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!
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. |
Summary
This modification addresses the concern raised in issue #14842. The issue highlights a redundancy in the descriptions of .toHaveBeenCalled() and .toHaveBeenCalledWith(), despite these two functions serving distinct purposes. The rationale for this change is rooted in the fact that .toHaveBeenCalled() pertains to scenarios where no function parameters are involved. Consequently, the description has been refined to accurately convey the functionality of
.toHaveBeenCalled
, eliminating the redundant details about arguments and aligning it more precisely with its intended purpose.Furthermore, I have revised the descriptions in all versioned documents associated with this documentation issue.
Test plan
After revising the documentation, I executed it on the documentation website's node server to ensure that the changes were accurately reflected. The modifications were applied to Jest documentation versions Next, 29.7, 29.6, 29.5, and 29.4. The server's documentation now displays the corrected values.