Releases: americanexpress/jest-image-snapshot
Releases · americanexpress/jest-image-snapshot
v2.6.0
-
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
v2.4.3
Support for Jest 23
- fix(package): support jest v23
node 9 support!
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
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
v2.2.0
Now allows for a custom snapshots directory to be given.
v2.1.0
v2.0.0
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 oftoMatchImageSnapshot()
. 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 boxtoMatchImageSnapshot()
usage it is fully compatible with your code . Thanks @phawxby for this change! (#19) - Adds integration tests to our suite. Thanks @wtgtybhertgeghgtwtg (#15)