@harnessed-ts/dom
v0.2.0
Published
Testing Library / jsdom driver for @harnessed-ts/core. Framework-agnostic — no React dependency.
Maintainers
Readme
@harnessed-ts/dom
Testing Library driver for @harnessed-ts/core. Framework-agnostic — it queries the
DOM, so it has no React dependency and works with any Testing Library setup.
import { dom } from "@harnessed-ts/dom"
import "@harnessed-ts/dom/matchers"
render(<LoginForm />)
const form = new LoginFormHarness(dom({ user: userEvent.setup() }))Pass container to scope a harness to one tree — which is what makes two
instances in a single test, and portals, work without a cleanup race.
Full guide, the cross-driver guarantees, and the API: the harnessed README.
MIT © Joe Gaudet, Jay Seo
