diff --git a/packages/suite-base/src/App.test.tsx b/packages/suite-base/src/App.test.tsx index 8184f9562d..ecb4f8922c 100644 --- a/packages/suite-base/src/App.test.tsx +++ b/packages/suite-base/src/App.test.tsx @@ -7,6 +7,7 @@ // file, You can obtain one at http://mozilla.org/MPL/2.0/ import { render, screen } from "@testing-library/react"; +import React from "react"; import { IAppConfiguration } from "@lichtblick/suite-base/context/AppConfigurationContext"; @@ -17,37 +18,18 @@ beforeEach(() => { jest.clearAllMocks(); }); -// Mocking shared providers -jest.mock("./providers/LayoutManagerProvider", () => jest.fn(() => <>)); -jest.mock("./providers/PanelCatalogProvider", () => - jest.fn(({ children }) =>
{children}
), -); -// Mocking shared components -jest.mock("./components/MultiProvider", () => - jest.fn(({ children }) =>
{children}
), -); -jest.mock("./components/GlobalCss", () => - jest.fn(({ children }) =>
{children}
), -); -jest.mock("./components/StudioToastProvider", () => jest.fn(() => <>)); -jest.mock("./components/DocumentTitleAdapter", () => - jest.fn(({ children }) =>
{children}
), -); -jest.mock("./components/ErrorBoundary", () => - jest.fn(({ children }) =>
{children}
), -); +// Mocking shared providers and components +jest.mock("./providers/LayoutManagerProvider", () => jest.fn(({ children }) =>
{children}
)); +jest.mock("./providers/PanelCatalogProvider", () => jest.fn(({ children }) =>
{children}
)); +jest.mock("./components/MultiProvider", () => jest.fn(({ children }) =>
{children}
)); +jest.mock("./components/GlobalCss", () => jest.fn(({ children }) =>
{children}
)); +jest.mock("./components/DocumentTitleAdapter", () => jest.fn(({ children }) =>
{children}
)); +jest.mock("./components/ErrorBoundary", () => jest.fn(({ children }) =>
{children}
)); jest.mock("./components/ColorSchemeThemeProvider", () => ({ - ColorSchemeThemeProvider: jest.fn(({ children }) => ( -
{children}
- )), + ColorSchemeThemeProvider: jest.fn(({ children }) =>
{children}
), })); -jest.mock("./components/CssBaseline", () => - jest.fn(({ children }) =>
{children}
), -); -jest.mock("./components/SendNotificationToastAdapter", () => - jest.fn(({ children }) =>
{children}
), -); - +jest.mock("./components/CssBaseline", () => jest.fn(({ children }) =>
{children}
)); +jest.mock("./components/SendNotificationToastAdapter", () => jest.fn(({ children }) =>
{children}
)); jest.mock("./context/NativeAppMenuContext", () => ({ Provider: jest.fn(({ children }) =>
{children}
), }));