Skip to content

test: replace jsdom with happy-dom - #635

Merged
danez merged 1 commit into
mainfrom
chore/use-happy-dom
Nov 9, 2026
Merged

danez merged 1 commit into
mainfrom
chore/use-happy-dom

Conversation

@danez

@danez danez commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator

Replace jsdom with happy-dom 21.0.4 as the Vitest environment and regenerate the pnpm lockfile. The existing tests and snapshots pass without changes, with identical coverage.

In three local coverage runs on Node 24.22.2, median wall time fell from 1.93s with jsdom 30.1.3 (1.92s with jsdom 31.0.0) to 1.36s with happy-dom, about 29% faster.

Validation:

  • pnpm install --frozen-lockfile
  • pnpm test --coverage: 79 tests passed; all 42 existing snapshots match
  • pnpm lint

Related: #634.

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

📊 Package size report   0.01%↑

File Before (Size / Gzip) After (Size / Gzip)
package.json 3.0 kB / 1.1 kB 0.1%↑3.0 kB / 0.3%↑1.1 kB
Total (Includes all files) 52.4 kB / 19.0 kB 0.01%↑52.4 kB / 0.02%↑19.1 kB
Tarball size 12.0 kB -0.1%↓12.0 kB
Unchanged files
File Size (Size / Gzip)
esm/components/Tab.js 983 B / 489 B
esm/components/TabList.js 352 B / 230 B
esm/components/TabPanel.js 603 B / 340 B
esm/components/Tabs.js 2.4 kB / 934 B
esm/components/UncontrolledTabs.js 5.6 kB / 1.7 kB
esm/helpers/childrenDeepMap.js 846 B / 299 B
esm/helpers/count.js 205 B / 157 B
esm/helpers/elementTypes.js 244 B / 144 B
esm/helpers/propTypes.js 2.6 kB / 927 B
esm/index.js 200 B / 94 B
index.d.ts 2.0 kB / 542 B
lib/components/Tab.js 1.6 kB / 775 B
lib/components/TabList.js 578 B / 314 B
lib/components/TabPanel.js 829 B / 425 B
lib/components/Tabs.js 3.0 kB / 1.2 kB
lib/components/UncontrolledTabs.js 6.4 kB / 2.0 kB
lib/helpers/childrenDeepMap.js 1.0 kB / 344 B
lib/helpers/count.js 325 B / 193 B
lib/helpers/elementTypes.js 369 B / 187 B
lib/helpers/propTypes.js 2.8 kB / 978 B
lib/index.js 558 B / 209 B
LICENSE 1.1 kB / 653 B
README.md 12.1 kB / 3.6 kB
style/react-tabs.css 842 B / 369 B
style/react-tabs.less 879 B / 391 B
style/react-tabs.scss 879 B / 391 B

🤖 This report was automatically generated by pkg-size-action

@danez
danez merged commit 098e0a1 into main Nov 9, 2026
13 checks passed
@danez
danez deleted the chore/use-happy-dom branch November 9, 2026 16:47
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