🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

unexpected-react

Package Overview
Dependencies
Maintainers
2
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unexpected-react - npm Package Versions

1245

3.3.2

Diff
bruderstein
published 3.3.2 •

Changelog

Source

v3.3.2

  • Fix issue with asserting against objects that do not have Object as their prototype (thanks to Martin Eigenmann @eigenmannmartin for reporting and fixing!)
bruderstein
published 3.3.1 •

Changelog

Source

v3.3.1

  • Added missing test-renderer file for requireing
bruderstein
published 3.3.0 •

Changelog

Source

v3.3.0

  • Added support for the react-test-renderer
  • Fixed issue #28 (immutable lists mixed with other child components)
bruderstein
published 3.2.4 •

Changelog

Source

v3.2.4

  • Fixed and updated the docs, and with huge thanks to @sunesimonsen all the examples in the docs are now tested
bruderstein
published 3.2.3 •

Changelog

Source

v3.2.3

  • 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 the with all children, with all wrappers, and exactly flags
bruderstein
published 3.2.2 •

Changelog

Source

v3.2.2

  • 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 further to 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 */
    });
bruderstein
published 3.2.1 •

Changelog

Source

v3.2.1

  • Update to unexpected-htmllike 2.1.1 (improved output for text content diffs)
bruderstein
published 3.2.0 •

Changelog

Source

v3.2.0

  • Update docs for rendering stateless components (thanks @2color)
  • Add support for eventTarget in on clauses of with event
  • Add support for queryTarget in queried for
bruderstein
published 3.1.3 •

Changelog

Source

v3.1.3

  • Fix for 'not to contain' and 'to contain with all children' after event
bruderstein
published 3.1.2 •

Changelog

Source

v3.1.2

  • Fix for combining queried for and with event in the deep renderer (#23 - thanks @janmeier for reporting)