Skip to content
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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

mukul-turing
Copy link

@mukul-turing mukul-turing commented Jan 15, 2024

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.

Screenshot 2024-01-15 at 3 31 22 PM Screenshot 2024-01-15 at 3 27 06 PM Screenshot 2024-01-15 at 3 29 01 PM Screenshot 2024-01-15 at 3 29 19 PM Screenshot 2024-01-15 at 3 29 29 PM

Copy link

linux-foundation-easycla bot commented Jan 15, 2024

CLA Not Signed

Copy link

netlify bot commented Jan 15, 2024

Deploy Preview for jestjs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 0b58c5c
🔍 Latest deploy log https://app.netlify.com/sites/jestjs/deploys/65a503aa3e33bb0008f1b480
😎 Deploy Preview https://deploy-preview-14853--jestjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@mukul-turing mukul-turing reopened this Jan 15, 2024
@SimenB
Copy link
Member

SimenB commented Jan 29, 2024

Thanks for sending a PR!

I thought this was resolved in #14847 - did we miss anything?

@mukul-turing
Copy link
Author

mukul-turing commented Jan 30, 2024

@SimenB Thanks for checking the PR, Yes this PR is fixing the issue for Next version. I think we missed that in #14847 . Do let me know, if any modifications required to this PR.

Visually,

image

Copy link

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.

@github-actions github-actions bot added the Stale label Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants