Fix yarn tsc errors

Signed-off-by: hiba-aldalaty <hibaaldalaty@gmail.com>
This commit is contained in:
hiba-aldalaty
2021-10-28 10:25:24 +01:00
parent f51bea930f
commit 91de276f6e
3 changed files with 3 additions and 4 deletions
@@ -16,7 +16,7 @@
import React from 'react';
import { renderInTestApp } from '@backstage/test-utils';
import { createEvent, fireEvent, screen, within } from '@testing-library/react';
import { screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import BuildRoundedIcon from '@material-ui/icons/BuildRounded';
import CreateComponentIcon from '@material-ui/icons/AddCircleOutline';
@@ -24,7 +24,6 @@ import { CatalogSidebarLogo } from './icons/CatalogSidebarLogo';
import { MiscIcon } from './icons/MiscIcon';
import { Sidebar, SidebarExpandButton } from './Bar';
import { SidebarItem, SidebarSearchField } from './Items';
import { hexToRgb } from '@material-ui/core/styles';
import { SubmenuItem } from './SubmenuItem';
async function renderScalableSidebar() {
+1 -1
View File
@@ -37,7 +37,7 @@ describe('ShortcutItem', () => {
it('displays the shortcut', async () => {
await renderInTestApp(
<SidebarContext.Provider value={{ isOpen: true }}>
<SidebarContext.Provider value={{ isOpen: true, setIsOpen: () => {} }}>
<ShortcutItem api={api} shortcut={shortcut} />
</SidebarContext.Provider>,
);
+1 -1
View File
@@ -30,7 +30,7 @@ const apis = ApiRegistry.from([
describe('Shortcuts', () => {
it('displays an add button', async () => {
await renderInTestApp(
<SidebarContext.Provider value={{ isOpen: true }}>
<SidebarContext.Provider value={{ isOpen: true, setIsOpen: () => {} }}>
<ApiProvider apis={apis}>
<Shortcuts />
</ApiProvider>