Vscode-jest: Consider moving the "new snapshots" to be a new button on the bottom

Created on 19 May 2017  Â·  5Comments  Â·  Source: jest-community/vscode-jest

'm unsure if an extension can have 2 bottom bar things, but I am seeing this new snapshots message all the time in my current work.

Ideally down here there'd be a "Update Snapshots" instead:

screen shot 2017-05-19 at 14 30 17

It's also not catching:

New snapshot was not written. The update flag must be explicitly passed to write a new snapshot.

Maybe it could just look for something like this:

› 2 snapshot tests failed in 2 test suites. Inspect your code changes or press u to update them.

Notably

press u to update them

enhancement help wanted

All 5 comments

Also, new snapshots should trigger it

screen shot 2017-05-19 at 14 54 46

Can we add a option for update snapshot automatically no need confirm. I always click yes replace it. 😄

I believe you could just use pathToJest and pass --u as a parameter as part of that path.

Get. Thanks

I've wondered about this myself too

On May 26, 2017 15:51, "Qibang" notifications@github.com wrote:

Get. Thanks

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/orta/vscode-jest/issues/111#issuecomment-304303547,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAC_jh-pdxSn6YeYZkoOZ-9HKtaS-0rKks5r9ucMgaJpZM4Ngh9B
.

Was this page helpful?
0 / 5 - 0 ratings