-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
[Bug]: regression in update snapshot command when snapshot fails in jest 29.5 #14057
Comments
it might be related to a previous issue #13557 that was closed which I also have in Vitest because Vitest uses pretty-format from Jest, I'm not sure if it's pretty-format or something else from Jest Snapshot EDIT Actually in your case, it might not be a bug but simply the format that changed in Jest 29, see their blog Jest 29: Snapshot format changes |
The message is the same on Jest v28. The logic of the message lives here: Just fix it (; By the way, as a Yarn 2 user I simply get: "Inspect your code changes or re-run jest with Related #14018 |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one. |
This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this 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. |
Version
29.5.0
Steps to reproduce
npx jest
npm run npx -- -u
doesn't make sense and won't workSnapshot Summary
› 2 snapshots failed from 2 test suites. Inspect your code changes or run
npm run npx -- -u
to update them.Expected behavior
Probably
npx jest -u
would be the correct command.Actual behavior
A suggestion to run
npm run npx -- -u
which doesn't even start jestAdditional context
Seems to be new in jest 29.5.0. I've just upgraded from jest 28 and don't recall seeing this before.
Environment
The text was updated successfully, but these errors were encountered: