CheckOps
jest-image-snapshot
jest-image-snapshot is an Apache-2.0 Jest matcher from American Express that compares images against stored baselines, the image equivalent of Jest snapshot testing, used widely for visual regression tests.
Latest public signals
Not refreshed yet. Refresh reads the public site and, when the entry has a GitHub repository, the latest release.
Introduction
jest-image-snapshot is a Jest matcher that performs image comparisons using pixelmatch and behaves just like Jest snapshots, according to its README. It is maintained by American Express and has about 3,900 GitHub stars.
Given a PNG image buffer, the toMatchImageSnapshot() matcher stores a baseline in an __image_snapshots__ directory on the first run, and compares later runs against it, failing with a diff image when the difference exceeds a threshold. Options include custom thresholds, a Gaussian blur to reduce noise, diff layout direction, custom directories, and updating snapshots with Jest’s -u flag. It pairs well with Puppeteer or Playwright to take screenshots inside Jest tests.
Version 6.5.2 was released in March 2026, with commits in October 2026.
In the quality loop it adds visual assertions to unit-style and end-to-end Jest tests.
The source code is at americanexpress/jest-image-snapshot on GitHub under the Apache-2.0 licence, with about 3,900 stars; the most recent commit was on 6 October 2026.
Features
- Jest matcher: toMatchImageSnapshot().
- Baselines in repo: Stored next to tests.
- Thresholds: Pixel or percentage tolerance.
- Blur: Reduce noise from rendering.
- Diff output: Images showing differences.
Pros
- Familiar workflow: Works like Jest snapshots.
- Free to use: Open source under the Apache-2.0 licence, so the core tool costs nothing to use.
- Actively maintained: The repository had commits as recent as 6 October 2026.
- Community: About 3,900 GitHub stars.
Cons
- Jest only: Not for other runners.
- Rendering noise: Needs consistent environments.
Usage and Links (Example)
const { toMatchImageSnapshot } = require('jest-image-snapshot');
expect.extend({ toMatchImageSnapshot });
it('renders the home page', async () => {
const image = await page.screenshot();
expect(image).toMatchImageSnapshot({ failureThreshold: 0.01, failureThresholdType: 'percent' });
});
Resources:
Pricing
jest-image-snapshot is free and open source under the Apache-2.0 licence.
Recommended for?
- Jest users wanting simple visual assertions.
- Not a fit for team review workflows.
Conclusion
jest-image-snapshot is the go-to Jest matcher for image comparison.
On CheckOps, jest-image-snapshot is filed under the Unit testing and End-to-end & functional stages. Related tools listed here include Jest, pixelmatch, BackstopJS, WebdriverIO Visual Service, reg-suit and Percy. Before choosing, compare them on licence, supported languages and platforms, hosting model, and how well each fits your existing CI pipeline. Facts on this page were checked against the official website, documentation and repository on 11 November 2026; statements the vendor makes about its own product are marked as vendor claims.
Compare
CheckOps pages that put jest-image-snapshot next to related tools. There is no paid placement on these lists.
Alternatives
Other tools on CheckOps that cover similar ground. Open a page, or compare one with jest-image-snapshot side by side.
JJestJest is a free, open-source JavaScript test runner with zero-config defaults, mocks, and snapshot testing.Compare with jest-image-snapshot
Ppixelmatchpixelmatch is an ISC-licensed, dependency-free JavaScript library from Mapbox for fast pixel-level image comparison with anti-aliasing detection and a perceptual colour difference metric.Compare with jest-image-snapshot
BBackstopJSBackstopJS is an MIT-licensed visual regression testing tool for web apps that compares screenshots over time, with Playwright or Puppeteer scripting, Docker rendering and an in-browser report; its README says it needs a new maintainer.Compare with jest-image-snapshot
WWebdriverIO Visual ServiceThe WebdriverIO Visual Service (@wdio/visual-service) is an MIT-licensed plugin that adds screenshot comparison for screens, elements and full pages to WebdriverIO tests on web, mobile web and native apps.Compare with jest-image-snapshot
Rreg-suitreg-suit is an MIT-licensed command-line tool for visual regression testing that compares images, stores snapshots in cloud storage such as S3 or GCS, and reports differences on pull requests through plugins.Compare with jest-image-snapshot
PPercyPercy is BrowserStack's visual testing service. SDKs upload screenshots from your tests; reviewers accept or reject the diff.Compare with jest-image-snapshot