# americanexpress/jest-image-snapshot

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

Repository: https://github.com/americanexpress/jest-image-snapshot
Canonical: https://ross.abutalabs.com/products/jest-image-snapshot
Language: JavaScript
License: Apache-2.0
License Family: permissive
Topics: jest, testing, snapshot, visual-comparison-testing, one-app, image-snapshots, jest-snapshots, image-comparisons
Last push: 2026-08-05T17:49:22+00:00

## Health v2 (maintenance only)
Score: 81/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 96, release rhythm 50, longevity 100
- inputs: {"age_days": 3355, "days_push": 28, "days_rel": 177, "gap_med": 150.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3913, forks 209 (observed 2026-08-28T04:08:28.853176+00:00)

## What it is
A Jest matcher that performs image comparisons using pixelmatch, behaving like Jest snapshots. It is most commonly used for visual regression testing of browser-rendered UIs.

## Use cases
- catch visual regressions in UI tests
- compare screenshots against a baseline in Jest
- snapshot test rendered web pages
- diff images in automated browser tests
- update image snapshots when UI changes are intentional
- add pixel diff threshold and blur to reduce flaky visual tests

## When to choose
- you already use Jest and want image snapshot assertions
- you run browser tests (e.g. Puppeteer/Playwright) and need visual regression checks
- you want configurable diff thresholds, blur, and snapshot update workflows

## When to avoid
- you don't use Jest as your test runner
- you need standalone image comparison outside a test suite
- you need cross-browser visual testing infrastructure rather than a matcher

## Facets
- artifact type: library
- maturity: active
- function: testing, e2e-testing, image-processing
- domain: testing, developer-tools, web-development
- platform: cli
- tags: jest, visual-regression-testing, snapshot-testing, pixelmatch, screenshot-testing, nodejs, javascript

## Member repositories
- americanexpress/jest-image-snapshot (main) score 81

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:28.853176+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:25:04.156536+00:00, confidence not recorded.
  - readme: https://github.com/americanexpress/jest-image-snapshot (fetched 2026-08-28T04:08:28.853176+00:00, sha 6617d5198b35)
  - registry_npm: https://registry.npmjs.org/jest-image-snapshot (fetched 2026-08-29T09:19:12.389867+00:00, sha ea823eec7032)
- Data as of 2026-08-30T08:39:29.467469+00:00.
