jest-image-snapshot-diff-reporter

1.0.0 • Public • Published

jest-image-snapshot-diff-reporter

Reports diff images for failing image snapshot tests which are using jest-image-snapshot. It helps to debug tests that are failing on CI where you can not access diff images directly.

NOTE: Currently only prints them on console in base64 if CI env variable set

Setup

yarn add --dev jest-image-snapshot-diff-reporter`
"jest"{
  ...
  "reporters": ["default", "jest-image-snapshot-diff-reporter", ...]
  ...
}

Roadmap

  • Respect jest-image-snapshot configuration such as customDiffDir and customSnapshotsDir
  • Support custom reporter function via config, that runs on each diff image. (so that they can be sent to somewhere else such as S3)

Readme

Keywords

none

Package Sidebar

Install

npm i jest-image-snapshot-diff-reporter

Weekly Downloads

179

Version

1.0.0

License

MIT

Unpacked Size

2.26 kB

Total Files

3

Last publish

Collaborators

  • harunurhan