@@ -23,9 +23,10 @@ import {
|
||||
EntityKindFilter,
|
||||
} from '@backstage/plugin-catalog-react';
|
||||
import { MockEntityListContextProvider } from '@backstage/plugin-catalog-react/testUtils';
|
||||
import { AlertApi, alertApiRef } from '@backstage/core-plugin-api';
|
||||
import { alertApiRef } from '@backstage/core-plugin-api';
|
||||
import { ApiProvider } from '@backstage/core-app-api';
|
||||
import { renderInTestApp, TestApiRegistry } from '@backstage/test-utils';
|
||||
import { mockApis } from '@backstage/frontend-test-utils';
|
||||
import { GetEntityFacetsResponse } from '@backstage/catalog-client';
|
||||
|
||||
const entities: Entity[] = [
|
||||
@@ -75,12 +76,7 @@ const apis = TestApiRegistry.from(
|
||||
} as GetEntityFacetsResponse),
|
||||
},
|
||||
],
|
||||
[
|
||||
alertApiRef,
|
||||
{
|
||||
post: jest.fn(),
|
||||
} as unknown as AlertApi,
|
||||
],
|
||||
[alertApiRef, mockApis.alert()],
|
||||
);
|
||||
|
||||
describe('<TemplateTypePicker/>', () => {
|
||||
|
||||
Reference in New Issue
Block a user