Skip to content

refactor: remove jsdom dependency from vitest config#96

Merged
uhyo merged 2 commits intomasterfrom
claude/migrate-jsdom-vitest-CMIOk
Mar 24, 2026
Merged

refactor: remove jsdom dependency from vitest config#96
uhyo merged 2 commits intomasterfrom
claude/migrate-jsdom-vitest-CMIOk

Conversation

@uhyo
Copy link
Owner

@uhyo uhyo commented Mar 24, 2026

Summary

  • Remove jsdom devDependency and the environment: "jsdom" vitest config, switching to the default node environment
  • Delete the empty vitest.setup.ts file and __tests__ directory
  • None of the 4 unit test files use DOM APIs — they all test pure logic (dependency graphs, content hashing, URL paths, entry path validation)

All 30 tests pass with the node environment.

Closes #88

Test plan

  • pnpm test:run — all 30 unit tests pass with node environment

https://claude.ai/code/session_01MXf6zdcermnEnEYtCNES6K

claude added 2 commits March 24, 2026 12:50
The jsdom environment was configured but none of the unit tests use DOM
APIs — they all test pure logic (dependency graphs, content hashing, URL
paths, entry path validation). Switch to the default node environment
and remove the jsdom devDependency.

Closes #88

https://claude.ai/code/session_01MXf6zdcermnEnEYtCNES6K
@uhyo uhyo merged commit 90e6cfd into master Mar 24, 2026
2 checks passed
@uhyo uhyo deleted the claude/migrate-jsdom-vitest-CMIOk branch March 24, 2026 12:58
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.

Proposal: migrate jsdom to Vitest Browser Mode

2 participants