Skip to content

Releases: developit/preact-jsx-chai

3.0.0

10 Jul 15:33
Compare
Choose a tag to compare
3.0.0 Pre-release
Pre-release

As of 3.0.0, preact-jsx-chai now requires Preact 10+. Use preact-jsx-chai@2 for older versions.

This release also includes 3 great new assertions courtesy of @billneff79:

  • expect(..).to.deep.equal(..)
  • expect(..).to.shallow.include(..)
  • expect(..).to.be.jsx

See the readme for examples of those.

2.3.1

10 Jul 20:18
Compare
Choose a tag to compare

note: the 2.x releases are for use with Preact 8 and prior.

@billneff79 added 3 great new assertions: (thanks!)

  • expect(..).to.deep.equal(..)
  • expect(..).to.shallow.include(..)
  • expect(..).to.be.jsx

See the readme for examples.

2.2.1

29 Sep 17:14
Compare
Choose a tag to compare
  • Updates to the latest preact-render-to-string, fixing an issue with Preact 6.1's rendering of class/className.

2.2.0

20 Sep 23:47
Compare
Choose a tag to compare
  • #30: Add loose modes for function prop comparison:
    • options.functions=false disables function prop comparison entirely
    • options.functionNames=false disables comparison of function names and bound state

2.1.0

11 Aug 18:50
Compare
Choose a tag to compare
  • .contain() & friends: Fixes a bug where the levels of indentation not matching caused .contain() to fail erroneously. This allows the diff to be whitespace-insensitive, but still pretty-prints the result. Thanks to @INRIX-mark-guinn for the PR!

2.0.0

11 Aug 18:49
Compare
Choose a tag to compare
  • Switched to a new major version of preact-render-to-string, which renders to a type of stringified JSX. This means complex attributes are now properly verified in shallow equality mode!

1.4.1

14 Apr 02:01
Compare
Choose a tag to compare

1.4.0

14 Apr 02:01
Compare
Choose a tag to compare
  • Fix shallow assertions incorrectly resolving components located at the root of expected values.

1.3.0

14 Apr 02:02
Compare
Choose a tag to compare
  • Update to preact-render-to-string 2.3.x to enable deterministic attribute sorting
  • Fixes shallow assertions (.equal() rather than .deep.equal() or .eql()) not working correctly
  • More tests

1.2.0

14 Apr 02:02
Compare
Choose a tag to compare
  • Update to be compatible with latest preact & preact-render-to-string