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

added Snapshot methods to parse and getContent separately #94

Merged
merged 2 commits into from
Nov 18, 2022

Conversation

connectdotz
Copy link
Collaborator

snapshot does not work with parameterized test or dynamic named tests by static analysis. In this PR, we extract the getMetadata logic into 2 separate methods: parse and getSnapshotContent, so users can submit the correct test name to get content later.

The API is backward compatible.

@connectdotz connectdotz merged commit 710fd66 into jest-community:master Nov 18, 2022
@connectdotz connectdotz deleted the snapshots branch November 18, 2022 02:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant