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
I was facing the same issue. It's resolved when I "import BrowserRouter from react-router-dom" and write code
//your routes here