Description: The tests for routePlanner mock fetch at a global level, which can be brittle and interfere with other tests in the suite.
Proposed Enhancement: Use a more robust mocking library like msw (Mock Service Worker) to intercept network requests at the service worker level. This provides a cleaner, more realistic, and isolated testing environment.
Description: The tests for routePlanner mock fetch at a global level, which can be brittle and interfere with other tests in the suite.
Proposed Enhancement: Use a more robust mocking library like msw (Mock Service Worker) to intercept network requests at the service worker level. This provides a cleaner, more realistic, and isolated testing environment.