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

When on jest mode, update mode should only update failed tests #49

Open
NimaSoroush opened this issue Nov 9, 2017 · 2 comments
Open

Comments

@NimaSoroush
Copy link
Owner

Current behavior:
Currently, when on jest mode, --updatesnapshots will update all tests.

Expected behavior:
Update should only update failed snapshots

@simondib
Copy link

simondib commented May 3, 2018

+1. Would love this feature!

@NimaSoroush
Copy link
Owner Author

Hey @simondib, I am working on this feature, but in meanwhile it is feasible to update only failing tests. Here are the steps you need to take:
Option 1:

  • only run failing tests and update all failing with --updatesnapshots command, or press u when in interactive mode

Option 2:

  • Run all test in interactive mode, when you got some failing tests, press t and type failing test name. Jest will only run the failing test again. Now you can press u to only update this test

Hope this helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants