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(SnapshotTesting.md): Additionally mention snapshot serializer in "replacing random string part" section #14175

Merged
merged 3 commits into from
Sep 20, 2023

Conversation

maro1993
Copy link
Contributor

@maro1993 maro1993 commented Jun 1, 2023

Summary

The tip Box in SnapshotTesting.md gives the impression that there are only two ways to replace random string parts in a snapshot. It forgets to mention that you can handle string replacements elegantly with the snapshot serializer. I updated the box and mentioned snapshot serializer as a valid way to replace random string parts globally and testwise.

Test plan

The change is so trivial i don't think this is needed here.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jun 1, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

@netlify
Copy link

netlify bot commented Jun 1, 2023

Deploy Preview for jestjs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 011656c
🔍 Latest deploy log https://app.netlify.com/sites/jestjs/deploys/650b0be8f46e470008a13a90
😎 Deploy Preview https://deploy-preview-14175--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.

Copy link
Member

@SimenB SimenB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! could you sign the CLA?

@linux-foundation-easycla
Copy link

CLA Missing ID CLA Not Signed

@linux-foundation-easycla
Copy link

CLA Missing ID CLA Not Signed

@maro1993 maro1993 closed this Jun 22, 2023
@maro1993 maro1993 force-pushed the docfix-random-strings-snapshotserializer branch from 0da0507 to d09904b Compare June 22, 2023 10:33
Mention snapshot serializer as a valid way to replace random strings.
@maro1993 maro1993 reopened this Jun 22, 2023
@maro1993
Copy link
Contributor Author

@SimenB CLA is signed

@SimenB
Copy link
Member

SimenB commented Jun 22, 2023

/easycla

@SimenB
Copy link
Member

SimenB commented Jun 22, 2023

Seems the email used in the commit is not the same as your GitHub user or something?

@maro1993
Copy link
Contributor Author

@SimenB yup but i resolved this as you can see in the checks. I "hard" resetted my branch and comitted my changes as a new commit so the bot warnings from before can be ignored.

image

@github-actions
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 Sep 20, 2023
@SimenB SimenB enabled auto-merge (squash) September 20, 2023 15:13
@SimenB SimenB merged commit c9767a9 into jestjs:main Sep 20, 2023
61 of 62 checks passed
@github-actions
Copy link

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.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants