diff --git a/plugins/catalog-import/src/components/StepPrepareCreatePullRequest/PreviewCatalogInfoComponent.test.tsx b/plugins/catalog-import/src/components/StepPrepareCreatePullRequest/PreviewCatalogInfoComponent.test.tsx index aac54e084a..0a6960cdc7 100644 --- a/plugins/catalog-import/src/components/StepPrepareCreatePullRequest/PreviewCatalogInfoComponent.test.tsx +++ b/plugins/catalog-import/src/components/StepPrepareCreatePullRequest/PreviewCatalogInfoComponent.test.tsx @@ -15,9 +15,8 @@ */ import { Entity } from '@backstage/catalog-model'; -import { ApiProvider } from '@backstage/core-app-api'; import { configApiRef } from '@backstage/core-plugin-api'; -import { TestApiRegistry, MockConfigApi } from '@backstage/test-utils'; +import { MockConfigApi, TestApiProvider } from '@backstage/test-utils'; import { makeStyles } from '@material-ui/core'; import { render, screen } from '@testing-library/react'; import { renderHook } from '@testing-library/react-hooks'; @@ -48,18 +47,17 @@ const entities: Entity[] = [ ]; const mockConfigApi = new MockConfigApi({}); - -const apis = TestApiRegistry.from([configApiRef, mockConfigApi]); +const apis = [[configApiRef, mockConfigApi]] as const; describe('', () => { it('renders without exploding', () => { render( - + - , + , ); const repositoryUrl = screen.getByText( @@ -76,13 +74,13 @@ describe('', () => { const { result } = renderHook(() => useStyles()); render( - + - , + , ); const repositoryUrl = screen.getByText( @@ -99,13 +97,13 @@ describe('', () => { const { result } = renderHook(() => useStyles()); render( - + - , + , ); const repositoryUrl = screen.getByText( @@ -120,23 +118,25 @@ describe('', () => { it('renders with custom catalog filename', () => { render( - - , + , ); const repositoryUrl = screen.getByText(