Open elite0107 opened 1 year ago
@elite0107 Hello, I think this issue is little bit stale.
I just looked around my package.json and I realized "@types/testing-libraryjest-dom" is not in there. And npm ([Link](https://www.npmjs.com/package/@types/testing-libraryjest-dom)) said This package has been deprecated.
So, I recommend you to remove @types/testing-library__jest-dom and reinstall with
npm install --save-dev @testing-library/react @testing-library/dom @types/react @types/react-dom
I followed the introduction how to use jest with typescript. I created jest.setup.ts file and imported @testing-library/jest-dom. But getting unexpected error and couldn't find a way to solve this issue.
Property 'toBeInTheDocument' does not exist on type 'Assertion'.ts(2339)
my package.json file is as follows.