integrations / snappydoo

Turns Jest snapshots into Slack message builder screenshots
12 stars 7 forks source link

Allow running specific snapshots #11

Open bkeepers opened 6 years ago

bkeepers commented 6 years ago

When someone else commits changes to snapshots, the only way to regenerate the screenshots is to run -a. It'd be nice if I could pass the name of the files.

Then I could have run this to regenerate snapshots that changed in the current branch:

$ snappydoo $(git diff --name-only master -- test/messages/__snapshots__)