mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-19 09:31:44 +03:00
f935a6b723
* Re-write test with storybook testing library * Update CI
19 lines
387 B
TypeScript
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; |