Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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 => {story()});
}
configure(require.context('../components', true, /.stories.tsx?$/), module);