jest-image-snapshot

✨ Jest matcher for image comparisons. Most commonly used for visual regression testing.

APACHE-2.0 License

Downloads
2.3M
Stars
3.8K
Committers
70

Bot releases are hidden (Show)

jest-image-snapshot - v2.12.0

Published by anescobar1991 almost 5 years ago

Adds the option to output diff base64 image string to console for failed tests.

Thanks @DianaSuvorova for the contribution!

jest-image-snapshot - Bug fixes!

Published by anescobar1991 almost 5 years ago

This release contains a bug fix to allow default custom snapshot identifiers to be set up in configureToMatchImageSnapshot (https://github.com/americanexpress/jest-image-snapshot/issues/154).

Thanks to @erbridge for the fix!

jest-image-snapshot - v2.9.0

Published by anescobar1991 about 5 years ago

The only change in this release is to allow customSnapshotIdentifier to be a function.

jest-image-snapshot - v2.8.2

Published by anescobar1991 about 5 years ago

Included in this release:

Documentation changes and a fix for a bug where the snapshot count displayed in the Jest results was off.

jest-image-snapshot - v2.8.1

Published by anescobar1991 over 5 years ago

Included in this release:

-chore(deps): update jest and peerDeps f8e4d342ac26fb2aa15401e5d760b0cb4d84326b

-docs(readme): Update jest peer dep version (#128) 62724126d7b40c1174f0c0237213b35fde16e21e
Document that Jest 24 is supported

-fix(options): Fix broken diffDirection option (#125) 9d7fc6a5cbf000265ddfdd51098ae034db3c2563

jest-image-snapshot - v2.8.0

Published by anescobar1991 over 5 years ago

Included in this release:

-feat(matcher): Add jest retry times support 48bc2e4b0a980c0a68a7896612ae9fd1dfd4a644
Adds support for Jest retryTimes()

-feat(diffResult): Allow using vertical side to side comparison result image 1b3e540d801432b316fd469acd3310eae00dba5b
Allows users to configure whether the diff results image is arranged vertically or horizontally.

jest-image-snapshot - v2.7.0

Published by anescobar1991 almost 6 years ago

Included in this release:

-fix(sizeDiff): unique fail message for size diffs 829d55b0e5ba5494b3896a07201f0fc667bbaf32
Previously if snapshots were differently sized, an error would be thrown with the same message as if the image diff had passed the configured threshold. This gave the impression that jesst-image-snapshot was ignoring the failureThreshold config when differently sized images would fail even if the pixel or percentage difference between the images was below the configured threshold.

-feat(options): Add customDiffDir option 70a4b2efca74231926a58122bf8b6af517a9183a - closes #113
Allows users to configure the diff output directory that jest-image-snapshot should use

jest-image-snapshot -

Published by anescobar1991 about 6 years ago

  • feat(diff-snapshot/hashing): Added hash comparison - e4df5fd083f50feb0c0f592a287cf47f6e5e69a3 - 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. - 05dcee4fe7dd9be480e91e38d1d184080a0a3105 - closes #108

jest-image-snapshot - v2.5.0

Published by anescobar1991 about 6 years ago

jest-image-snapshot - Support for Jest 23

Published by anescobar1991 over 6 years ago

  • fix(package): support jest v23
jest-image-snapshot - node 9 support!

Published by anescobar1991 over 6 years ago

This release includes changes to:

  • support node 9
  • support Jest --ci flag and behave just like Jest snapshots do when said flag is passed.
jest-image-snapshot - v2.4.0

Published by anescobar1991 over 6 years ago

This release includes the following features:

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

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

jest-image-snapshot - v2.3.0

Published by anescobar1991 almost 7 years ago

  • 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

jest-image-snapshot - v2.2.0

Published by anescobar1991 almost 7 years ago

Now allows for a custom snapshots directory to be given.

jest-image-snapshot - v2.1.0

Published by anescobar1991 almost 7 years ago

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
jest-image-snapshot - v2.0.0

Published by anescobar1991 almost 7 years ago

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)
jest-image-snapshot -

Published by anescobar1991 about 7 years ago

  • Better documentation
  • Changes for compatibility with Jest 21.0.0
jest-image-snapshot - v1.0.0

Published by anescobar1991 about 7 years ago

Full feature set!

Since initial release following was added:

  • Better documentation
  • Ability to toggle color output on or off (@elisherer in #5)
jest-image-snapshot - v0.1.0

Published by anescobar1991 about 7 years ago

Initial public release.

Package Rankings
Top 0.81% on Npmjs.org
Top 8.17% on Proxy.golang.org
Badges
Extracted from project README
npm Mentioned in Awesome Jest
Related Projects