Fix and enhance storybook:modules:tests (#3107)
* Fix and enhance storybook:modules:tests Co-authored-by: v1b3m <vibenjamin6@gmail.com> Co-authored-by: Thiago Nascimbeni <tnascimbeni@gmail.com> * Fix and enhance storybook:modules:tests Co-authored-by: v1b3m <vibenjamin6@gmail.com> Co-authored-by: Thiago Nascimbeni <tnascimbeni@gmail.com> * Fix and enhance storybook:modules:tests Co-authored-by: v1b3m <vibenjamin6@gmail.com> Co-authored-by: Thiago Nascimbeni <tnascimbeni@gmail.com> * Remove unnecessary changes Co-authored-by: v1b3m <vibenjamin6@gmail.com> Co-authored-by: Thiago Nascimbeni <tnascimbeni@gmail.com> * Fix email thread story * Re-enable storybook:modules * Fix --------- Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com> Co-authored-by: v1b3m <vibenjamin6@gmail.com> Co-authored-by: Thiago Nascimbeni <tnascimbeni@gmail.com> Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@ -6,14 +6,12 @@ import { graphqlMocks } from '~/testing/graphqlMocks';
|
||||
|
||||
import { CompanyBoard } from '../board/components/CompanyBoard';
|
||||
|
||||
const DoNotRenderEffect = () => <></>;
|
||||
|
||||
const meta: Meta<typeof CompanyBoard> = {
|
||||
title: 'Modules/Companies/Board',
|
||||
component: CompanyBoard,
|
||||
decorators: [
|
||||
(Story) => <Story />,
|
||||
ComponentWithRouterDecorator,
|
||||
SnackBarDecorator,
|
||||
],
|
||||
component: DoNotRenderEffect,
|
||||
decorators: [ComponentWithRouterDecorator, SnackBarDecorator],
|
||||
parameters: {
|
||||
msw: graphqlMocks,
|
||||
},
|
||||
@ -22,4 +20,5 @@ const meta: Meta<typeof CompanyBoard> = {
|
||||
export default meta;
|
||||
type Story = StoryObj<typeof CompanyBoard>;
|
||||
|
||||
// FIXME: CompanyBoard is re-rendering so much and exceeding the maximum update depth for some reason.
|
||||
export const OneColumnBoard: Story = {};
|
||||
|
||||
Reference in New Issue
Block a user