mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-18 21:16:47 +00:00
44a117390b
jsdom has no WebGL, so the real vector basemap layer can never work in the client tests. More immediately: several map tests hand react-leaflet a partial useMap() stub with no addLayer on it, which was harmless while the basemap was a stubbed <TileLayer> and is not now that it is a real layer - addTo() reaches for map.addLayer and rejects into the void. 79 unhandled rejections, every assertion still green, and vitest fails the run on those. Stubbed in the setup file for the same reason ResizeObserver is: the capability does not exist in this environment. The tests that assert on the layer register their own mock, which takes precedence.