import {initializeOrg} from 'sentry-test/initializeOrg'; import {render, screen} from 'sentry-test/reactTestingLibrary'; import {ProjectInstallPlatform} from 'sentry/views/projectInstall/platform'; describe('ProjectInstallPlatform', function () { it('should render NotFound if no matching integration/platform', async function () { const routeParams = { projectId: TestStubs.Project().slug, platform: 'lua', }; const {organization, router, route, project, routerContext} = initializeOrg({ ...initializeOrg(), router: { location: { query: {}, }, params: routeParams, }, }); MockApiClient.addMockResponse({ method: 'GET', url: '/organizations/org-slug/projects/', body: [project], }); render( , { organization, context: routerContext, } ); expect(await screen.findByText('Page Not Found')).toBeInTheDocument(); }); });