How to use creevey - 1 common examples

To help you get started, we’ve selected a few creevey examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github skbkontur / retail-ui / packages / retail-ui / .storybook / config.js View on Github external
import 'core-js/stable';
import React from 'react';
import { configure, addDecorator } from '@storybook/react';
import { withCreevey } from 'creevey';
import FlatTheme from '../lib/theming/themes/FlatTheme';
import ThemeProvider from '../components/ThemeProvider';

addDecorator(withCreevey({ skip: 'Story tests migration process' }));

addDecorator(story => (
  <div style="{{" id="test-element">
    {story()}
  </div>
));

if (process.env.STORYBOOK_FLAT_UI) {
  addDecorator(story =&gt; {story()});
}

configure(require.context('../components', true, /.stories.tsx?$/), module);

creevey

Cross-browser screenshot testing tool for Storybook with fancy UI Runner

MIT
Latest version published 12 months ago

Package Health Score

59 / 100
Full package analysis

Popular creevey functions