A simple vitest
matcher extension for matching images snapshots.
import { createToMatchImageSnapshot } from 'vitest-image-snapshot-matcher';
import { expect } from 'vitest';
expect.extend({
toMatchImageSnapshot: createToMatchImageSnapshot(),
});
- Match against snapshots
- Write missing snapshots
- Side-by-side comparison diffs
- Update snapshots