jsdom recipes
3 tested jsdom integration recipes with preact, @preact/signals, @testing-library/preact, @testing-library/user-event. Exact pinned versions and a last-passed receipt, last run 2026-10-15.
Preact components with Signals state, tested with Testing Library on jsdom
A Preact 11 cart using @preact/signals signal and computed state plus a hooks-based async form, tested in Vitest on jsdom with @testing-library/preact and user-event, including re-render on signal change without new props.
SolidJS signals, memos and resources, tested with Solid Testing Library
SolidJS components using createSignal, createMemo, For, Show and createResource with Suspense, compiled by vite-plugin-solid and tested in Vitest on jsdom with @solidjs/testing-library and user-event.
TanStack Query + React Testing Library hooks and components (Vitest + jsdom)
Test React components and hooks that use TanStack Query v5 with Testing Library on jsdom: fresh QueryClient per test, retries off, mocked fetchers, mutations with invalidation.
Used together with jsdom
preact@preact/signals@testing-library/preact@testing-library/user-eventvitestsolid-js@solidjs/testing-libraryvite-plugin-solid@tanstack/react-queryreact@testing-library/react