mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-30 06:17:06 +00:00
Node 25+ exposes its own localStorage/sessionStorage globals, which shadow jsdom's in the Vitest environment. Tests that spy on Storage.prototype or pass localStorage to StorageEvent then fail (5 tests in markdown-a and sessionLastSeen). Bind both globals to the jsdom window's storage instead of the memory fallback that only kicked in when methods were missing. via [HAPI](https://hapi.run) Co-authored-by: HAPI <noreply@hapi.run>