/* eslint-disable flowtype/require-valid-file-annotation */
import initStoryshots from '@storybook/addon-storyshots';
import { axeTest } from '@storybook/addon-storyshots-puppeteer';
import path from 'path';
import { enableStoryshotsMode } from '../utils/storybook/addons/hyperspeed-animations/enable-storyshots-mode';

initStoryshots({
  suite: 'A11y storyshots',
  configPath: path.resolve(__dirname, '../storybook-eyebot/config-jest.js'),
  test: axeTest({
    storybookUrl: `file://${process.cwd()}/storybook-static`,
    customizePage: enableStoryshotsMode,
  }),
});
