Remove global router mock #14597
Labels
frontend
quality/code
Violations from current rules for code, best practices, etc. Or just bad code.
quality/debt
Shortcuts made for saving time. Fixing this will make us more efficient going forward.
quality/testing
Tests that are missing, needs to be created or could be improved.
status/ready-for-specification
Status: Used for issues that are ready for functional decription og detailed design.
team/studio-core
team/studio-domain1
team/studio-domain2
Currently, the
react-router-dom
package is mocked globally with the following setup:This is not ideal since we need to bypass it when we want to test the routing. Instead, we should render the components inside the provider components
BrowserRouter
orMemoryRouter
when testing, or (as a last resort) mock the package on file level.The text was updated successfully, but these errors were encountered: