Women-Coding-Community / wcc-frontend

MIT License
2 stars 4 forks source link

Jest Setup #15

Open stepsen89 opened 2 weeks ago

stepsen89 commented 2 weeks ago

Jest package and NextJS is causing issues when testing next js internal router This needs to be addressed no normal test should be affected, if the component is not using withRouter (as the header does)

jpmaHub commented 1 day ago

<Router history={history}> this bit of code only works with historyv4 and react react-router-dom-5. but there are new verisons available for these history5 and react-router-dom6. We could use <Router location={location.href} navigator={history}> for the latest versions