Skip to content

test: make localStorage tests independent of Node runtime flags - #29

Open
ddebowczyk wants to merge 1 commit into
Jeshwin:mainfrom
ddebowczyk:test/make-test-command-portable
Open

test: make localStorage tests independent of Node runtime flags#29
ddebowczyk wants to merge 1 commit into
Jeshwin:mainfrom
ddebowczyk:test/make-test-command-portable

Conversation

@ddebowczyk

Copy link
Copy Markdown

Summary

  • Install an isolated in-memory Web Storage implementation in the Vitest setup.
  • Clear storage before every test and test that no value leaks from one test to the next.
  • Set a stable jsdom URL, state the supported Node range, and add a Node 20.19/22/24 verification matrix.

Validation

  • npm ci
  • npm test (72 passed, without NODE_OPTIONS)
  • npm run lint
  • npm run build:lib
  • yamllint .github/workflows/verify.yml

Production persistence injection remains outside this test-environment-only change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant