Package

purescript-elmish-testing-library

Repository
collegevine/purescript-elmish-testing-library
License
MIT
Uploaded by
pacchettibotti
Published on
2026-08-15T21:14:20Z

A library for testing Elmish components on live DOM. Can be run in the browser on native DOM or under Node, in which case it will emulate the DOM via the Happy DOM library. A different DOM emulator can also be used as long as it's initialized before this library is imported: React DOM works out what the environment supports when it loads, so a DOM that shows up later leaves its event handling in a degraded state.

Events are dispatched with @testing-library/dom, so that package needs to be installed alongside react and react-dom.

See documentation on Pursuit.