Original version from podio
- Initial version using unexpected-htmllike and react-render-hook to provide assertions on the full virtual DOM
- Fix dependencies - issue seen when using npm 2.x (thanks to @faceyspacey for reporting)
- Fix error handling when react-render-hook was not injected
- Update to v0.4.1 of unexpected-htmllike-jsx-adapter, to add support for iterators as children Thanks to @jkimbo for the failing test, and @Lugribossk for reporting
- Force dependency update to unexpected-htmllike 0.3.2 - important bugfix for 'to contain', when a child element
is not identical, but actually matches with the
to contain
flags that are in place.
- Update to unexpected-htmllike 0.4.0, and add className diffing, using class semantics. i.e. order does not matter,
extra classes are ignored by default (not with
exactly
style assertions).
- Patch version of unexpected-htmllike-jsx-adapter to support flattening children (only a package.json update)
- Patch version of unexpected-htmllike to ^0.5.0 to fix issue with reordered children
- Update to unexpected-htmllike v1.0.0 - much faster due to attempting everything sync first, before reverting
to async if an async assertion is encountered. You no longer need to return the result of theexpect
, unless you're actually doing an asynchronousexpect.it()
assertion somewhere in yourexpected
value.
- Patch version of unexpected-htmllike to ^1.1.0 (improves output for function props, and props with undefined values - #15)
-
Props / Attributes are now tested with
to satisfy
semantics, unlessexactly
is specified, in which caseto equal
is used. This is probably what was expected, but could mean some tests that previously failed now pass, hence the major version. -
queried for
support for both shallow and deep renderers -
with event
event triggering for shallow and deep renderers
- Fix rendering numerical 0, via a fix from react-devtools
- Drop support for React 0.13.x and add support for React v15 (thanks Gustav Nikolaj #19)
- Remove need for Symbol polyfill (fixed #18)
- Remove unexpected-documentation-site-generator from the dependencies (thanks @jkimbo #20)
- Update various dependencies, so that React 0.13 is properly no longer supported, and React v15 is properly supported, without peerDep warnings (thanks @choffmeister)
- Enable using
queried for
andwith event
as the resolution of the promise.
- Update to htmllike 2.0.2, fixes output issue
- Fix for combining
queried for
andwith event
in the deep renderer (#23 - thanks @janmeier for reporting)
- Fix for 'not to contain' and 'to contain with all children' after event
- Update docs for rendering stateless components (thanks @2color)
- Add support for
eventTarget
inon
clauses ofwith event
- Add support for
queryTarget
inqueried for
- Update to unexpected-htmllike 2.1.1 (improved output for text content diffs)
-
Fixed issue with
queried for
when the resulting promise is used, not returning the correct object. Note that if the result of the query is an HTMLElement, it is now (correctly) the HTMLElement, and not an opaque object that could be used in a furtherto have rendered
style assertion. As this should have been the case, although the tests have been changed, this is considered a patch version issue as this was the intended behaviour - the tests were sadly wrong. (#26) -
Fixed issue that multiple events with arguments would not always use the correct object as the result of the promise. e.g.
expect(component,
'with event click', { /* ... */ },
'with event click', { /* ... */ })
.then(result => {
/* Here the result would have been undefined */
});
- Fixed issue with default flags for
on
clauses in events. It now uses the same default matching flags as all other assertions. All assertions now use a single function to calculate the options, so the matching flags are always the same based on thewith all children
,with all wrappers
, andexactly
flags
- Fixed and updated the docs, and with huge thanks to @sunesimonsen all the examples in the docs are now tested
- Added support for the react-test-renderer
- Fixed issue #28 (immutable lists mixed with other child components)
- Added missing
test-renderer
file forrequire
ing
- Fix issue with asserting against objects that do not have
Object
as their prototype (thanks to Martin Eigenmann @eigenmannmartin for reporting and fixing!)
- Jest snapshot support (
'to match snapshot'
and'to satisfy snapshot'
assertions) - Major refactor so assertions for all renderers (shallow, full DOM, test and raw for snapshots) use the same code
- Add
when rendered
,when deeply rendered
andto render as
assertions to enable direct rendering within the assertion - Add helpful error messages when using assertions that require a different
require
to be used (e.g. using jest snapshot assertions without requiringunexpected-react/jest
- Add helpful error message when validating against the test renderer
.toJSON()
method output - should be called with the renderer directly
- Bump version of js-writer to fix bug with snapshots with booleans
- Fix issue with snapshot comments (JSX representation) not always saving correctly (thanks @sunesimonsen for reporting, help tracking it down and the fix!)
- (breaking) Drop support for React 0.14 and <= 15.4. React 15.5 without any warnings
- Fix peerDependency versions for react (thanks @gustavnikolaj)
- Fix snapshot support for Jest 20
- Return the renderer output as the fulfillment value of the promise for
to render as
andto have rendered
, allowing further assertions on the output after the main assertion (thanks @papandreou!)
- Initial support for React v16 (Fiber).
-
Fix incorrect dependency for reactrendered adapter
-
Initial support for React v16 (Fiber).
- Fix peer dependencies
- Add react-native (shallow only) support
require('unexpected-react/react-native')
- thanks @janmonschke!
- Bump unexpected-htmllike to 2.1.3 to fix missing assertion output on some assertions (errorMode was being overwritten)
- Make peerDeps react 16 official
- Bump js-writer to fix issue serialising ReactElements in snapshots (thanks Aravind Ravi Sulekha for reporting)
- Bump unexpected-htmllike-reactrendered-adapter for React 16.5 support
- Bump unexpected-htmllike to 2.2.0 to update support for unexpected versions
- Compatibility fixes for unexpected 11 (thanks @papandreou)
- Compatibility for React 16.9. jest snapshot tests are still failing, but this adds support for React 16.9 and up, so releasing anyway with hopefully a fix later for snapshot tests
- Bump the peer deps to include react 16.9
- Bump dependencies