-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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 doesn't work #6611
Comments
Duplicate of #6485. |
Fix should be out in 23.3.0 |
Apologies, I did a search and somehow missed that one. |
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
🐛 Bug Report
Running Jest in watch mode, I get some failing snapshot tests (the diffs are visible, etc). I press
i
to try and interactively update these snapshots. It showsDetermining test suites to run...
(plus the line showing which suite is running) for a short time. Sometimes I can notice quick flashes of something at this point, but they only appear for an instant (some of them look like failing tests, maybe the diffs as well, very difficult to make anything out at that speed). After that it just prints out:I don't get presented with any other prompts during this process.
Worth noting that pressing
w
at this point doesn't do anything.Looking at the snapshot files, they weren't actually updated (thankfully). If I press Enter it goes back to watch mode like expected, and the snapshot errors haven't changed.
Expected behavior
I expected to be presented with interactive prompts for updating (or not updating) failing snapshots as described here: http://jestjs.io/docs/en/snapshot-testing#interactive-snapshot-mode
Run
npx envinfo --preset jest
System: OS: Linux 4.4 Ubuntu 16.04.4 LTS (Xenial Xerus) CPU: x64 Intel(R) Core(TM)2 Quad CPU Q9400 @ 2.66GHz Binaries: Node: 10.5.0 - /usr/bin/node Yarn: 1.7.0 - /usr/bin/yarn npm: 6.1.0 - /usr/bin/npm npmPackages: jest: ^23.2.0 => 23.2.0
It's probably important to note that I'm running in WSL. This occurs in both the WSL-provided (conhost-based) terminal, as well as in Mintty.
The text was updated successfully, but these errors were encountered: