import { render } from "@testing-library/react"; import { ErrorBoundary, ErrorBoundaryFallback, } from "content-src/components/ErrorBoundary/ErrorBoundary"; describe("", () => { it("should render its children when there is no error", () => { const { getByText } = render( child content ); expect(getByText("child content")).toBeInTheDocument(); }); }); describe("", () => { it("should render", () => { const { container } = render(); expect(container.querySelector(".as-error-fallback")).toBeInTheDocument(); }); });