Skip to content

anchor-g/vitest-image-snapshot-matcher

Repository files navigation

vitest-image-snapshot-matcher

A simple vitest matcher extension for matching images snapshots.

Usage

import { createToMatchImageSnapshot } from 'vitest-image-snapshot-matcher';
import { expect } from 'vitest';

expect.extend({
    toMatchImageSnapshot: createToMatchImageSnapshot(),
});

Features

  • Match against snapshots
  • Write missing snapshots
  • Side-by-side comparison diffs
  • Update snapshots

About

Vitest matcher for image snapshot testing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published