americanexpress/jest-image-snapshot

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

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 34 minutes ago
Added to GitGenius on September 17th, 2026
Created on June 26th, 2017
Open Issues & Pull Requests: 42 (+0)
GitHub issues: Enabled
Number of forks: 210
Total Stargazers: 3,915 (+0)
Total Subscribers: 33 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 51.6 days
Mean response time: 159.1 days
90th percentile: 465.5 days
Tracked items: 15

Most active contributors

Sign in to see contributor activity.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 8
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 801 days
Stale 30+ days: 8
Stale 90+ days: 8

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • released (3)
  • bug (1)
  • semantic-release (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

jest-image-snapshot is a Jest matcher for image comparisons, most commonly used for visual regression testing.

The tool solves the problem of detecting unintended visual changes in applications by automating image comparison in tests. It works by storing a baseline image snapshot on the first test run, then comparing subsequent test runs against that baseline. The matcher uses pixelmatch for the actual pixel-level comparison and behaves like Jest's built-in snapshot testing, allowing developers to update snapshots when intentional visual changes are made. The tool offers customization options including a configurable difference threshold, Gaussian blur for handling noise, and adjustable diff layout orientation.

Teams building browser-based applications with visual components should consider this tool for preventing regressions in UI appearance. It integrates directly into Jest test suites without requiring separate tooling. The matcher stores baseline images in a `__image_snapshots__` directory by default, though a custom snapshots directory can be specified. Jest versions between 20 and 29 are required as a peer dependency.

The project maintains active engagement with contributors and demonstrates responsiveness to issues and pull requests. Development activity shows consistent attention to bug fixes and feature requests from the user community. The maintainers actively solicit contributions and have established clear processes for community involvement.