Skip to content

ci: Delete obsolete image snapshots

Mark Florian requested to merge remove-stale-snapshots into main

What does this MR do?

Sometimes a story is removed, but the corresponding image snapshot isn't.

Now when the update_screenshots job is run, obsolete image snapshots which no longer have a corresponding story are deleted.

This is implemented via a Jest reporter defined by jest-image-snapshot, which is a transitive dependency via @storybook/addon-storyshots-puppeteer.

Edited by Mark Florian

Merge request reports

Loading