From 9b28eebfd6a187bc85a305db14ae8deae225afcc Mon Sep 17 00:00:00 2001 From: Lucas Bordeau Date: Mon, 29 Jul 2024 15:37:14 +0200 Subject: [PATCH] Fixes CI post merge (#6435) This PR fixes CI problems post merge of https://github.com/twentyhq/twenty/pull/6282 CI often crashes because some TS files aren't included during development and developers push errors on their PR. Created an issue to mitigate this : https://github.com/twentyhq/twenty/issues/6436 --- ...ttingsServerlessFunctionDetail.stories.tsx | 21 ++++++++----------- 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/packages/twenty-front/src/pages/settings/serverless-functions/__stories__/SettingsServerlessFunctionDetail.stories.tsx b/packages/twenty-front/src/pages/settings/serverless-functions/__stories__/SettingsServerlessFunctionDetail.stories.tsx index 11257930e..219f10e73 100644 --- a/packages/twenty-front/src/pages/settings/serverless-functions/__stories__/SettingsServerlessFunctionDetail.stories.tsx +++ b/packages/twenty-front/src/pages/settings/serverless-functions/__stories__/SettingsServerlessFunctionDetail.stories.tsx @@ -1,14 +1,14 @@ -import { SettingsServerlessFunctionDetail } from '~/pages/settings/serverless-functions/SettingsServerlessFunctionDetail'; -import { graphqlMocks } from '~/testing/graphqlMocks'; +import { DEFAULT_CODE } from '@/ui/input/code-editor/components/CodeEditor'; import { Meta, StoryObj } from '@storybook/react'; +import { within } from '@storybook/test'; +import { graphql, http, HttpResponse } from 'msw'; +import { SettingsServerlessFunctionDetail } from '~/pages/settings/serverless-functions/SettingsServerlessFunctionDetail'; import { PageDecorator, PageDecoratorArgs, } from '~/testing/decorators/PageDecorator'; -import { graphql, http, HttpResponse } from 'msw'; -import { getImageAbsoluteURIOrBase64 } from '~/utils/image/getImageAbsoluteURIOrBase64'; -import { DEFAULT_CODE } from '@/ui/input/code-editor/components/CodeEditor'; -import { within } from '@storybook/test'; +import { graphqlMocks } from '~/testing/graphqlMocks'; +import { getImageAbsoluteURI } from '~/utils/image/getImageAbsoluteURI'; import { sleep } from '~/utils/sleep'; const SOURCE_CODE_FULL_PATH = @@ -46,12 +46,9 @@ const meta: Meta = { }, }); }), - http.get( - getImageAbsoluteURIOrBase64(SOURCE_CODE_FULL_PATH) || '', - () => { - return HttpResponse.text(DEFAULT_CODE); - }, - ), + http.get(getImageAbsoluteURI(SOURCE_CODE_FULL_PATH) || '', () => { + return HttpResponse.text(DEFAULT_CODE); + }), ], }, },