🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
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

1345

5.0.0-rc2

Diff
bruderstein
published 5.0.0-rc2 •

Changelog

Source

v5.0.0-rc2

  • Fix incorrect dependency for reactrendered adapter

  • Initial support for React v16 (Fiber).

bruderstein
published 5.0.0-rc1 •

Changelog

Source

v5.0.0-rc1

  • Initial support for React v16 (Fiber).
bruderstein
published 4.1.0 •

Changelog

Source

v4.1.0

  • Return the renderer output as the fulfillment value of the promise for to render as and to have rendered, allowing further assertions on the output after the main assertion (thanks @papandreou!)
bruderstein
published 4.0.2 •

Changelog

Source

v4.0.2

  • Fix snapshot support for Jest 20
bruderstein
published 4.0.1 •

Changelog

Source

v4.0.1

  • Fix peerDependency versions for react (thanks @gustavnikolaj)
bruderstein
published 4.0.0 •

Changelog

Source

v4.0.0

  • (breaking) Drop support for React 0.14 and <= 15.4. React 15.5 without any warnings
bruderstein
published 3.5.2 •

Changelog

Source

v3.5.2

  • Fix issue with snapshot comments (JSX representation) not always saving correctly (thanks @sunesimonsen for reporting, help tracking it down and the fix!)
bruderstein
published 3.5.1 •

Changelog

Source

v3.5.1

  • Bump version of js-writer to fix bug with snapshots with booleans
bruderstein
published 3.5.0 •

Changelog

Source

v3.5.0

  • Add when rendered, when deeply rendered and to 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 requiring unexpected-react/jest
  • Add helpful error message when validating against the test renderer .toJSON() method output - should be called with the renderer directly
bruderstein
published 3.4.0 •

Changelog

Source

v3.4.0

  • 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