Running `npm i -D @testing-library/jest-dom@latest` made the error go away.
Running
npm i -D @testing-library/jest-dom@latestmade the error go away.