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

Interactive snapshot update not working #5444

Closed
rightaway opened this issue Feb 2, 2018 · 5 comments · Fixed by #5450
Closed

Interactive snapshot update not working #5444

rightaway opened this issue Feb 2, 2018 · 5 comments · Fixed by #5450

Comments

@rightaway
Copy link

I'm using the latest jest and starting it with jest --watch /path/tests/**/*.js, but when I have a test failure due to a failing snapshot, I can't interactively update the snapshots by pressing i as the console says. When I press i nothing happens, but the other keys are working fine.

@rickhanlonii
Copy link
Member

rickhanlonii commented Feb 2, 2018

@rightaway I'm not able to reproduce, can you push a repo that reproduces?

Here's what I see in 22.1.4 with running yarn --watch ./**/*.spec.js from this repo

@rightaway
Copy link
Author

It looks like the behavior I mentioned is for when I change the name of a test case, is it expected?

@rickhanlonii
Copy link
Member

Ah, so this is what you see? Pressing i from this view does nothing.

Short term we could remove the i option in this case

@rightaway
Copy link
Author

Yes, that's the same behavior I see. Was thinking there would be an interactive prompt to show the changed names.

@github-actions
Copy link

This issue 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 May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants