Skip to content
Library
Testing

preact-jsx-chai

Chai assertions for checking Preact JSX output in tests.

Native PreactActive

Native Preact

Built for Preact and does not require a React compatibility layer.

Packagepreact-jsx-chai

Facts at a glance
Preact compatibility
Native Preact
Tested Preact versions
Not documented
TypeScript
No TypeScript
SSR
SSR unsupported
Maintenance
Active
License
Not documented
Last verified
Not yet verified
Terminal
npm install preact-jsx-chai
Preact example
export function Example() {  return <section>preact-jsx-chai can be evaluated inside a Preact component.</section>;}

Known limitations

  • PreactHub still needs project-specific verification notes for versions, bundle impact and edge cases.

Introduction

preact-jsx-chai is tracked in PreactHub because it is relevant for Preact applications, migrations, ecosystem comparisons or adjacent tooling.

Preact configuration

No `preact/compat` alias is required for the primary API.

SSR notes

SSR support should be treated cautiously; load this library on the client when it depends on browser APIs.