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:
gitstart-twenty
2023-12-21 19:45:47 +01:00
committed by GitHub
parent d532f22fbb
commit 801177531b
19 changed files with 190 additions and 69 deletions

View File

@ -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 = {};