snapshot icon indicating copy to clipboard operation
snapshot copied to clipboard

Autoupdate Snapshots?

Open arahansen opened this issue 6 years ago • 5 comments

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?

arahansen avatar Jan 26 '18 00:01 arahansen

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.

GerritSe avatar Feb 15 '18 17:02 GerritSe

It might be possible to use jest-snapshot directly?

arahansen avatar Feb 15 '18 17:02 arahansen

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.

bostjan-cigan avatar Jul 25 '18 08:07 bostjan-cigan

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

bahmutov avatar Jul 25 '18 08:07 bahmutov

Guys, how do I update snapshot manually? Thanks.

tomitrescak avatar Nov 02 '18 13:11 tomitrescak