Preact Render Spy Versions Save

Render preact components with access to the produced virtual dom for testing.

v1.3.0

6 years ago

This release lands a bunch of the community PRs, adding a few new methods:

  • Better TypeScript types - updated some methods to be more correctâ„¢
  • Added first() and last() functions for FindWrappers
  • FindWrapper.map!

Enjoy!

v1.2.1

6 years ago
  • Fixes a bug with .attr() and falsey values - See issue #50

v1.2.0

6 years ago
  • Added support for .find(<jsx with="attributes" />)
  • Fixed bug in class name matching with find.

v1.1.0

6 years ago

New methods for FindWrapper and RenderContext

  • .component() to get stateful components
  • .setState() and .state() to write/read to component states.
  • FindWrapper will now emit a console.warn if you try to use any method on a stale result (something new rendered since you called .find())