percy / percy-storybook

Percy's Storybook SDK.
https://docs.percy.io/docs/storybook
MIT License
150 stars 45 forks source link

Storybook 6 randomisation support #314

Closed wombleton closed 3 years ago

wombleton commented 3 years ago

It doesn't seem that the preview.js is run before each snapshot in percy. Is there another technique similar to the old config.js technique?

Robdel12 commented 3 years ago

Hey @wombleton! v4.x of the Storybook SDK now takes DOM snapshots by default (with JavaScript disabled in our rendering environment). https://github.com/percy/percy-storybook#unexpected-diffs inPercy only works if JS is enabled, so you can enable JavaScript to those snapshots or the whole build to get that functionality back.