I have a problem that I don\'t know how to solve, I get this error when running npm test
Invariant Violation: You should not use
The way I did was updating the dependencies with yarn add react-router-dom or npm install react-router-domand deleting the node_modules folder and running yarn or npm install again.
yarn add react-router-dom
npm install react-router-dom
yarn
npm install