twenty/front/.storybook/preview.ts
Charles Bochet f935a6b723
Re-write test with storybook testing library (#150)
* Re-write test with storybook testing library

* Update CI
2023-05-29 11:02:38 +02:00

19 lines
387 B
TypeScript

import { initialize, mswDecorator } from 'msw-storybook-addon';
import { Preview } from '@storybook/react';
initialize();
const preview: Preview = {
decorators: [mswDecorator],
parameters: {
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
},
};
export default preview;