In the React Testing Library it is recommended to add both @testing-library/react & @testing-library/jest-dom in order to start testing with React Testing Library.
While in fact, React Testing Library is shipped out of the box when installing CRA or CRA-TS, as can be seen here: normal template package.json and in typescript template package.json
In the React Testing Library it is recommended to add both
@testing-library/react&@testing-library/jest-domin order to start testing with React Testing Library.While in fact,
React Testing Libraryis shipped out of the box when installing CRA or CRA-TS, as can be seen here: normal templatepackage.jsonand in typescript templatepackage.json