When we try to install the dev-dependency react-testing-library, it appears an error importing the modules indicating that we should use @testing-library/react instead.
The steps that I used to correct the error are:
Install the @testing-library/react library as a dev-dependency.
Import @testing-library/react/cleanup-after-each & {render} from @testing-library/react
When we try to install the dev-dependency
react-testing-library
, it appears an error importing the modules indicating that we should use@testing-library/react
instead.The steps that I used to correct the error are:
@testing-library/react
library as a dev-dependency.@testing-library/react/cleanup-after-each
&{render}
from@testing-library/react
After that, everything has worked perfectly!