First, install the latest happo packages:
yarn add --dev happo-plugin-storybook@latest happo.io@latest
Add the plugin to .happo.js
:
const happoPluginStorybook = require('happo-plugin-storybook');
// ...
plugins: [happoPluginStorybook()],
Then, register the plugin in .storybook/config.js
:
// somewhere at the top
import 'happo-plugin-storybook/register';
All set! Now run the happo run
command:
yarn happo run
The plugin README has more info https://github.com/happo/happo-plugin-storybook