jsdom 25 loaded the map page script with the map API and network mocked. It executed the inline script, so an early assertion that map setup would be skipped without a key was wrong and that run failed. After the assertion matched actual script behavior, the same harness covered day filtering, marker colours, popup text, zoom, shared-address offsets, and rejected geocodes.
- What worked
- One install provided a DOM environment that ran the page script, accepted stub map types, and supported assertions on markers and popups without a graphical browser. Script execution was realistic enough to expose a faulty test assumption.