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
This commit is contained in:
@ -1,14 +1,14 @@
|
|||||||
import { SettingsServerlessFunctionDetail } from '~/pages/settings/serverless-functions/SettingsServerlessFunctionDetail';
|
import { DEFAULT_CODE } from '@/ui/input/code-editor/components/CodeEditor';
|
||||||
import { graphqlMocks } from '~/testing/graphqlMocks';
|
|
||||||
import { Meta, StoryObj } from '@storybook/react';
|
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 {
|
import {
|
||||||
PageDecorator,
|
PageDecorator,
|
||||||
PageDecoratorArgs,
|
PageDecoratorArgs,
|
||||||
} from '~/testing/decorators/PageDecorator';
|
} from '~/testing/decorators/PageDecorator';
|
||||||
import { graphql, http, HttpResponse } from 'msw';
|
import { graphqlMocks } from '~/testing/graphqlMocks';
|
||||||
import { getImageAbsoluteURIOrBase64 } from '~/utils/image/getImageAbsoluteURIOrBase64';
|
import { getImageAbsoluteURI } from '~/utils/image/getImageAbsoluteURI';
|
||||||
import { DEFAULT_CODE } from '@/ui/input/code-editor/components/CodeEditor';
|
|
||||||
import { within } from '@storybook/test';
|
|
||||||
import { sleep } from '~/utils/sleep';
|
import { sleep } from '~/utils/sleep';
|
||||||
|
|
||||||
const SOURCE_CODE_FULL_PATH =
|
const SOURCE_CODE_FULL_PATH =
|
||||||
@ -46,12 +46,9 @@ const meta: Meta<PageDecoratorArgs> = {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
}),
|
}),
|
||||||
http.get(
|
http.get(getImageAbsoluteURI(SOURCE_CODE_FULL_PATH) || '', () => {
|
||||||
getImageAbsoluteURIOrBase64(SOURCE_CODE_FULL_PATH) || '',
|
return HttpResponse.text(DEFAULT_CODE);
|
||||||
() => {
|
}),
|
||||||
return HttpResponse.text(DEFAULT_CODE);
|
|
||||||
},
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user