Fixed build issues

Signed-off-by: bogdannechyporenko <bogdannechiporenko@gmail.com>
This commit is contained in:
bogdannechyporenko
2022-11-17 20:06:15 +01:00
parent 17a99f32e9
commit c0f423a54c
3 changed files with 11 additions and 0 deletions
+1
View File
@@ -1,5 +1,6 @@
---
'@backstage/plugin-cost-insights': patch
'@backstage/test-utils': patch
---
Making a possibility to hide a trending line in a cost insights plugin
+6
View File
@@ -25,6 +25,7 @@ import { JsonObject } from '@backstage/types';
import { JsonValue } from '@backstage/types';
import { Observable } from '@backstage/types';
import { PermissionApi } from '@backstage/plugin-permission-react';
import { PropsWithChildren } from 'react';
import { ReactElement } from 'react';
import { ReactNode } from 'react';
import { RenderOptions } from '@testing-library/react';
@@ -165,6 +166,11 @@ export class MockPermissionApi implements PermissionApi {
): Promise<EvaluatePermissionResponse>;
}
// @alpha
export const MockPluginProvider: ({
children,
}: PropsWithChildren<{}>) => JSX.Element;
// @public
export class MockStorageApi implements StorageApi {
// (undocumented)
@@ -17,6 +17,10 @@
import React, { PropsWithChildren } from 'react';
import { createPlugin, PluginProvider } from '@backstage/core-plugin-api';
/**
* Mock for PluginProvider to use in unit tests
* @alpha
*/
export const MockPluginProvider = ({ children }: PropsWithChildren<{}>) => {
type TestInputPluginOptions = {};
type TestPluginOptions = {};