Skip to content

Commit

Permalink
Fixes CI post merge (#6435)
Browse files Browse the repository at this point in the history
This PR fixes CI problems post merge of
#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 :
#6436
  • Loading branch information
lucasbordeau authored Jul 29, 2024
1 parent 4389e81 commit 9b28eeb
Showing 1 changed file with 9 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -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 =
Expand Down Expand Up @@ -46,12 +46,9 @@ const meta: Meta<PageDecoratorArgs> = {
},
});
}),
http.get(
getImageAbsoluteURIOrBase64(SOURCE_CODE_FULL_PATH) || '',
() => {
return HttpResponse.text(DEFAULT_CODE);
},
),
http.get(getImageAbsoluteURI(SOURCE_CODE_FULL_PATH) || '', () => {
return HttpResponse.text(DEFAULT_CODE);
}),
],
},
},
Expand Down

0 comments on commit 9b28eeb

Please sign in to comment.