cypress-io / snapshot

Adds value / object / DOM element snapshot testing support to Cypress test runner
116 stars 25 forks source link

Autoupdate Snapshots? #14

Open arahansen opened 6 years ago

arahansen commented 6 years ago

Is this a bug report or a feature request?

Feature Request

If this is a new feature request, please describe it below Jest snapshot testing provides a flag -u to automatically update all snapshot definitions. Does this library provide similar functionality? Or is it on the roadmap to add this support?

GerritSe commented 6 years ago

This would be an extremely helpful feature that we already make use of in jest. I'm not sure how to integrate this in terms of the cypress UI though.

arahansen commented 6 years ago

It might be possible to use jest-snapshot directly?

bostjan-cigan commented 6 years ago

Manually updating the snapshot value is a pain, that is true. Is there a way where the snapshots would be in separate files per component? Would be willing to help with this feature if someone would guide me through the steps necessary.

bahmutov commented 6 years ago

it would be nice, and pull requests are welcome - I would use cy.task for this!

tomitrescak commented 5 years ago

Guys, how do I update snapshot manually? Thanks.