From 91de276f6e3547a6975b9e7a0635aa87cdb3c94c Mon Sep 17 00:00:00 2001 From: hiba-aldalaty Date: Thu, 28 Oct 2021 10:25:24 +0100 Subject: [PATCH] Fix yarn tsc errors Signed-off-by: hiba-aldalaty --- packages/core-components/src/layout/Sidebar/Bar.test.tsx | 3 +-- plugins/shortcuts/src/ShortcutItem.test.tsx | 2 +- plugins/shortcuts/src/Shortcuts.test.tsx | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/core-components/src/layout/Sidebar/Bar.test.tsx b/packages/core-components/src/layout/Sidebar/Bar.test.tsx index 8a28d69e27..74a4fb468e 100644 --- a/packages/core-components/src/layout/Sidebar/Bar.test.tsx +++ b/packages/core-components/src/layout/Sidebar/Bar.test.tsx @@ -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() { diff --git a/plugins/shortcuts/src/ShortcutItem.test.tsx b/plugins/shortcuts/src/ShortcutItem.test.tsx index 0b5c5fc919..f452ec095d 100644 --- a/plugins/shortcuts/src/ShortcutItem.test.tsx +++ b/plugins/shortcuts/src/ShortcutItem.test.tsx @@ -37,7 +37,7 @@ describe('ShortcutItem', () => { it('displays the shortcut', async () => { await renderInTestApp( - + {} }}> , ); diff --git a/plugins/shortcuts/src/Shortcuts.test.tsx b/plugins/shortcuts/src/Shortcuts.test.tsx index 9182bcb47d..fa8e6be440 100644 --- a/plugins/shortcuts/src/Shortcuts.test.tsx +++ b/plugins/shortcuts/src/Shortcuts.test.tsx @@ -30,7 +30,7 @@ const apis = ApiRegistry.from([ describe('Shortcuts', () => { it('displays an add button', async () => { await renderInTestApp( - + {} }}>