mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
3e0a6a0d85
Node 25 ships an experimental built-in localStorage global accessor that shadows jsdom's mock, leaving window.localStorage as an empty stub with no clear/setItem/removeItem/getItem methods. This broke all 22 telemetry tests with 'window.localStorage.clear is not a function' and was blocking pre-commit hooks repo-wide. Add a vitest setup file that installs a proper in-memory Storage shim on both globalThis and window before each test, so jsdom-environment tests behave the same on Node 20 and Node 25.
2.7 KiB
2.7 KiB