-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Closed
Description
When jest finds obsolete snapshots, it does not explain which one they are. This can be very frustrating, when you have many snapshots and you can't find which one is wrong...
The problem was also shortly discussed in #3581
Jest output:
› 2 obsolete snapshots found.
Snapshot Summary
› 2 obsolete snapshots found, run with `npm run prod-test -- -u` to remove them.
Test Suites: 5 passed, 5 total
Tests: 211 passed, 211 total
Snapshots: 190 passed, 190 total
Time: 13.694s
Ran all test suites.
I expect an output more like:
› 2 obsolete snapshots found:
- ThisComponent
- ThisOtherComponent
Snapshot Summary
› 2 obsolete snapshots found, run with `npm run prod-test -- -u` to remove them.
Test Suites: 5 passed, 5 total
Tests: 211 passed, 211 total
Snapshots: 190 passed, 190 total
Time: 13.694s
Ran all test suites.
This is a problem for me because when I run tests locally, no snapshot are obsolete, but when run in my CI/CD, it finds 2 obsolete snapshots, without telling me which ones....
Undistraction, crubier, alexisbg, mrlubos, JessicaBarclay and 20 moremrlubos, kobvel, valourus and guigrpa