import { render } from "@testing-library/react"; import { WrapWithProvider } from "test/jest/test-utils"; import { INITIAL_STATE } from "common/Reducers.sys.mjs"; import { Notifications } from "content-src/components/Notifications/Notifications"; describe("", () => { it("should render when toastQueue is non-empty", () => { const state = { ...INITIAL_STATE, Notifications: { toastQueue: ["hideWidgetsToast"], toastCounter: 0 }, }; const { container } = render( ); expect( container.querySelector(".notification-wrapper") ).toBeInTheDocument(); }); });