Property 'toBeInTheDocument' does not exist on type 'JestMatchers<HTMLElement>'.
npm i @types/testing-library__jest-dom -D
即可
Webpack 5 & Jest - Property 'toBeInTheDocument' does not exist on type 'JestMatchers
npm i @types/testing-library__jest-dom -D
即可
Webpack 5 & Jest - Property 'toBeInTheDocument' does not exist on type 'JestMatchers