storybook-chromatic
Advanced tools
Changelog
2.0.0 - 2019-07-17
We now default to building and uploading your storybook, rather than starting and tunneling it. This has many benefits including increased reliability and better support for Live View. You'll need to ensure you have a build-storybook
script defined in package.json
(as added by the Storybook CLI). To get the old behaviour, pass -s
to the chromatic test
command.
We now support HTTPS storybooks (using the --ssl
flag and friends).
We polyfill window.Intl
in our JSDOM environment.
We polyfill window.customElements
in our JSDOM environment.
Changelog
1.4.0 - 2019-06-20
Changelog
1.3.2 - 2019-04-02
Added a new diffThreshold
Storybook parameter you can use to control the anti-aliasing threshold we use for diffing if you find that certain images are tripping our diff.
Fix an issue with handling rebased branches in unusual CI systems.
Changelog
1.3.1 - 2019-03-21
isChromatic
so you don't need to load our full package to use it (which is useful if you want to use it inside your app, which we generally don't advise).Changelog
1.3.0 - 2019-02-28
Change the default behaviour around starting the storybook; if we find something running on the port, we assume it's your storybook, instead of requiring you to pass -S/--do-not-start
.
Add a new flag --preserve-missing
which means any stories that are missing from the last build will be assumed to be unchanged. Use this if you are doing tricky things around dynamically building your Storybook based on code changes.
Changelog
1.2.6 - 2019-02-05
MutationObserver
mockChangelog
1.2.5 - 2019-01-30
Fix an issue with using isChromatic()
inside Jest (storyshots).
Some rendering timing fixes to better support Storybook version 5
Changelog
1.2.4 - 2019-01-18
Added an export isChromatic()
to determine if code is running under test.
Added JSDOM mocks for CreateObjectUrl
and MutationObserver
Added a parameter { chromatic: { disable: true } }
to skip a story in chromatic
Added a parameter { chromatic: { noScroll: true } }
to avoid scrolling screenshots in (non-chrome) browsers.