react typescript testing TypeError: MutationObserver is not a constructor
问题 I created a React app with create-react last week. I have a simple form that displays a message when I click submit. I would like to test it, this is the test i created SampleForm.test.tsx : import React from "react"; import { render, fireEvent, screen, waitFor } from "@testing-library/react"; import SampleForm from "./SampleForm"; import "@testing-library/jest-dom/extend-expect" test("renders submits form", async () => { const str = "THIS DIDNT DO ANYTHING"; const { container, getByText,