Skip to content

Releases: americanexpress/jest-image-snapshot

v2.6.0

19 Oct 01:24
Compare
Choose a tag to compare
  • feat(diff-snapshot/hashing): Added hash comparison - e4df5fd - closes #106

  • fix(execution): use exec path to execute spawned diff-snapshot process. Change is to now use process.execPath to ensure that we spawn a new node process to run diff-snapshot if node is not on the environment. - 05dcee4 - closes #108

v2.5.0

16 Aug 21:36
Compare
Choose a tag to compare
  • feat(matcher): don't update passing snapshots unless specified - d2d1931 - fixes #74

  • perf(diff-snapshot): perform work outside jest process - f336c47 - fixes #87

v2.4.3

07 Jun 04:50
Compare
Choose a tag to compare

cb52996 closes #55

0ce55c6 closes #61

7fb8410 closes #82

Support for Jest 23

07 Jun 04:43
Compare
Choose a tag to compare
  • fix(package): support jest v23

node 9 support!

24 Apr 21:18
Compare
Choose a tag to compare

This release includes changes to:

  • support node 9
  • support Jest --ci flag and behave just like Jest snapshots do when said flag is passed.

v2.4.0

13 Mar 21:40
Compare
Choose a tag to compare

This release includes the following features:

Create diff image even when images are of different sizes (#42)

  • Resolves #49 and allows users to better make a decision as to whether snapshot should be updated or not for tests failing due to image size differences! Big thanks to @sergeybekrin for implementing this!

Clean up test results (__diff_output__) for a given test before said test's execution

  • Resolves #52 which would often cause confusion as a test's diff image from a previous run's failure would be retained in file system

v2.3.0

12 Jan 22:28
Compare
Choose a tag to compare
  • Add expected image, and actual image to diff image that is output on test failures to make allow for side to side comparison. (#40)

  • Add examples and improve integration tests

v2.2.0

08 Nov 02:42
Compare
Choose a tag to compare

Now allows for a custom snapshots directory to be given.

v2.1.0

27 Oct 18:39
Compare
Choose a tag to compare

Changes included in this release are:

  • Add new configuration to allow for different failure threshold types #23
  • Fix bug where it would still create a __diff_output__ directory for passing tests

v2.0.0

24 Oct 17:47
Compare
Choose a tag to compare

Version 2.0.0 was a true community effort and brings in these changes:

  • Adds default configuration option for toMatchImageSnapshot() allowing you to apply a common configuration for all uses of toMatchImageSnapshot(). Thanks @chrbala! (#20)
  • toMatchImageSnapshot() no longer creates a diff snapshot for passing builds (Yay less bloat!) Thanks @phawxby! (#18)
  • Replaces blink-diff with pixelmatch as pixelmatch is a better maintained, better performant library (toMatchImageSnapshot() is ~66% faster in some of our tests). Note that this is a breaking change in that some of the custom options you may have been using from blink-diff are not available in pixelmatch though for out of the box toMatchImageSnapshot() usage it is fully compatible with your code . Thanks @phawxby for this change! (#19)
  • Adds integration tests to our suite. Thanks @wtgtybhertgeghgtwtg (#15)