Skip to content
Compare

Vitest Browser Preact vs Preact Testing Library

Side-by-side compatibility, runtime support and editorial notes for Preact projects.

Native PreactActive
Vitest Browser Preact

Browser-context renderer for Preact components in Vitest 4+.

npmvitest-browser-preact
Category
Testing
Compatibility
Native Preact
Maintenance
Active
Runtime
TypeScriptNo SSRNo islandsESM
Verified
Not yet verified
Tested with
Not documented
License
MIT
Bundle size
Not documented
Limitations
  • Requires Vitest 4.0.0 or higher with the browser test runner enabled.
Score
Directory score70/100
Compatibility35/35
Maintenance20/20
TypeScript10/10
SSR0/10
Islands0/10
ESM5/5
Verification0/10
View Vitest Browser Preact profile
Native PreactActive
Preact Testing Library

Testing Library integration focused on user-centric testing for Preact components.

npm@testing-library/preact
Category
Testing
Compatibility
Native Preact
Maintenance
Active
Runtime
TypeScriptNo SSRIslandsESM
Verified
Not yet verified
Tested with
Not documented
License
MIT
Bundle size
Not documented
Score
Directory score80/100
Compatibility35/35
Maintenance20/20
TypeScript10/10
SSR0/10
Islands10/10
ESM5/5
Verification0/10
View Preact Testing Library profile

At a glance

AttributeVitest Browser PreactPreact Testing Library
CompatibilityNative PreactNative Preact
MaintenanceActiveActive
TypeScriptNative TypeScriptNative TypeScript
SSRSSR unsupportedSSR unsupported
IslandsNoYes
Last verifiedNot yet verifiedNot yet verified
AI auditNot auditedNot audited