-
Notifications
You must be signed in to change notification settings - Fork 294
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
How to update outdated snapshots or generate new ones? #368
Comments
Related #276 |
I'm seeing this issue as well. I tried digging into it a bit, but couldn't figure out how to find the source for the extension within the VS Code dev tools so I could set a breakpoint. It seems like this line is relevant and wouldn't match the case where more than 1 snapshot fails, but even with only one failing or missing snapshot, I'm still not seeing the prompt even though my test output seems to match the pattern on that line. If anyone can let me know how I can actually debug this within VS Code, I'm happy to give it a shot. I haven't worked on VS Code extensions before, so it is likely that no advice you can give me is too simple or obvious :-). Do I need to clone and compile locally in order to debug it, or is there a way I can do it with the released version of the extension? |
This seems to have been fixed by #356, but there hasn't been a release with that PR included yet. |
On release 2.9.2 there's an option to Restart Jest On Snapshot Update, this worked for me. Here's an extended explanation: |
Environment
node -v
: v9.11.2npm -v
: 5.6.0npm ls jest
: jest@23.5.0Operating system: OSX 10.13.6
VSCode: 1.27.0
Prerequisite
Expected Behavior
Im able to update or create new snapshots by the proposed "A one button update for failed snapshots." feature.
Actual Behavior
Where? :)
In case of failed snapshots I expected a dropdown or inline link to update the snapshot but nothing is there:
In case of a new snapshot could be written, there is a "snapshot missing" text above the expect clause. If I clickthe link it triggers the popup in right bottom corner, but nothing happens.
Whats wrong with my attempt?
Thank you!
The text was updated successfully, but these errors were encountered: