Fixing broken CI pipeline

Signed-off-by: bnechyporenko <bnechyporenko@bol.com>
This commit is contained in:
bnechyporenko
2022-07-09 13:10:52 +02:00
parent 0bc9dff8ad
commit 2e81cc2258
@@ -23,8 +23,10 @@ import {
} from '@backstage/catalog-model';
import { TableColumn, TableProps } from '@backstage/core-components';
import {
createPlugin,
IdentityApi,
identityApiRef,
PluginProvider,
ProfileInfo,
storageApiRef,
} from '@backstage/core-plugin-api';
@@ -133,6 +135,22 @@ describe('DefaultCatalogPage', () => {
};
const storageApi = MockStorageApi.create();
type TestInputPluginOptions = {
'key-1': string;
};
type TestPluginOptions = {
'key-1': string;
'key-2': string;
};
const plugin = createPlugin({
id: 'my-plugin',
__experimentalConfigure(_: TestInputPluginOptions): TestPluginOptions {
return { 'key-1': 'value-1', 'key-2': 'value-2' };
},
});
const renderWrapped = (children: React.ReactNode) =>
renderWithEffects(
wrapInTestApp(
@@ -144,7 +162,7 @@ describe('DefaultCatalogPage', () => {
[starredEntitiesApiRef, new MockStarredEntitiesApi()],
]}
>
{children}
<PluginProvider plugin={plugin}>{children}</PluginProvider>
</TestApiProvider>,
{
mountedRoutes: {