fix!: don't emit localStorage warnings on Node 26, fail gracefully when worker fails to start#10293
Conversation
✅ Deploy Preview for vitest-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Is this a separate independent fix?
There was a problem hiding this comment.
Ah, yes. This PR was initially just to add support for Node 26, I could split it into separate PRs if you want. It's small enough that I was too lazy and just kept it here :P
There was a problem hiding this comment.
I'd like separate PR, but also fine if it's included in pr title and description properly.
There was a problem hiding this comment.
Ok, included in title 😄
| 'innerHeight', | ||
| 'innerWidth', | ||
| 'length', | ||
| 'localStorage', |
There was a problem hiding this comment.
I forgot what this means. Does this mean previously we didn't expose local/sessionStorage as jsdom/happy-dom global?
There was a problem hiding this comment.
Previously we didn't override new window's keys if the value exists on globalThis already. This list basically says "override anyway"
There was a problem hiding this comment.
Now I see. getWindowKeys loop is mind-bending and took a while to comprehend 😓
| 'innerHeight', | ||
| 'innerWidth', | ||
| 'length', | ||
| 'localStorage', |
There was a problem hiding this comment.
Now I see. getWindowKeys loop is mind-bending and took a while to comprehend 😓
Description
Resolves #issue-number
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
pnpm-lock.yamlunless you introduce a new test example.Tests
pnpm test:ci.Documentation
pnpm run docscommand.Changesets
feat:,fix:,perf:,docs:, orchore:.