node -v: v8.4.0npm -v: 5.3.0npm ls react-scripts (if you haven鈥檛 ejected): N/A
Operating system: macOS High Sierra Version 10.13.3
Removal of snapshot expectation would remove obsolete snapshot (or a dialog would appear asking if I'd like to update my snapshots and remove obsolete)
Removal of snapshot expectation does not remove obsolete snapshot (or show a dialog asking if I'd like to update my snapshots and remove obsolete)
Am I misunderstood? It seems that if I add a new snapshot expectation, I will be prompted to update my snapshots and this will remove any obsolete; however, this is not an ideal workflow.
I started using this extension to replace the need to run my tests in the terminal, but it seems I may need to still do this in the case where I have obsolete snapshots.
Makes sense, want to try take a look at adding this?
+1
I just run jest --updateSnapshot and that flag removes obsolete snapshots
Most helpful comment
I just run
jest --updateSnapshotand that flag removes obsolete snapshots