Skip to content

v4.3.0

Compare
Choose a tag to compare
@trotzig trotzig released this 18 May 12:16

This minor release adds support for a new skip configuration option. Use it to inform Happo about examples/stories that you want to skip for the run but still want to keep in the Happo reports.

Here's an example where "Button > disabled" is skipped for a run:

// .happo.js
module.exports = {
  // ...
  plugins: [
    happoPluginStorybook({
      skip: async () => {
        // you can do asynchronous tasks here to figure out which examples to skip. Just make sure to return an array at the end, where each item has a `component` and a `variant` property. 
        return [
          {
            component: 'Button',
            variant: 'disabled',
          },
        ];
      },
    }),
]