Skip to content

Releases: mzgoddard/preact-render-spy

User Feedback

16 May 14:05
Compare
Choose a tag to compare

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

18 Oct 14:01
Compare
Choose a tag to compare
  • Fixes a bug with .attr() and falsey values - See issue #50

v1.2.0

17 Oct 19:45
Compare
Choose a tag to compare
  • Added support for .find(<jsx with="attributes" />)
  • Fixed bug in class name matching with find.

v1.1.0

19 Sep 00:20
Compare
Choose a tag to compare

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())