Fix yarn tsc errors
Signed-off-by: hiba-aldalaty <hibaaldalaty@gmail.com>
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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>,
|
||||
);
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user