differencify icon indicating copy to clipboard operation
differencify copied to clipboard

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

Open NimaSoroush opened this issue 7 years ago • 2 comments

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

Expected behavior: Update should only update failed snapshots

NimaSoroush avatar Nov 09 '17 11:11 NimaSoroush

+1. Would love this feature!

simondib avatar May 03 '18 23:05 simondib

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

NimaSoroush avatar May 04 '18 10:05 NimaSoroush