Skip to content

Remove the unused @types/jsdom devDependency and a stale test TODO - #3608

Merged
tanem merged 2 commits into
masterfrom
dead-code-pass
Aug 26, 2026
Merged

Remove the unused @types/jsdom devDependency and a stale test TODO#3608
tanem merged 2 commits into
masterfrom
dead-code-pass

Conversation

@tanem

@tanem tanem commented Aug 26, 2026

Copy link
Copy Markdown
Owner

A dead-code pass across the repo. Two removals survived verification; everything else checked came up clean.

  • @types/jsdom was an unused devDependency. Nothing imports jsdom's types: the suite only sets Jest's testEnvironment: 'jsdom', a string that needs no types, and jest-environment-jsdom carries its own @types/jsdom transitively. Both knip and depcheck flag it. Removing it also prunes the now-orphaned top-level undici-types from the lockfile; @types/node keeps its own nested copy.
  • A stale // TODO: Style child element fills. in test/browser.spec.tsx, added in 2019 with no linked issue and never acted on.

Verified with check:types, lint, check:format and test:src after the removals, then the full npm test gate (build, size, cjs/es/dist, and the whole React matrix through 19.1) green.

tanem added 2 commits August 27, 2026 05:28
Nothing imports jsdom's types: the suite only sets Jest's
`testEnvironment: 'jsdom'`, a string that needs no types, and
jest-environment-jsdom carries its own @types/jsdom transitively. The
direct dependency was added in a bulk tooling refactor without a traced
use. Both knip and depcheck flag it; check:types, lint and the full test
gate pass without it.
The note marked an aspiration to style child element fills, added in
2019 with no linked issue and never acted on. No fill-styling code or
assertion ever followed it, so it is dead intent, not a pending task.
@tanem tanem added the internal label Aug 26, 2026
@tanem
tanem merged commit 5a8a834 into master Aug 26, 2026
1 check passed
@tanem
tanem deleted the dead-code-pass branch August 26, 2026 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant