renovate[bot] 48c4e8c68b
chore(deps): update all non-major dependencies (#3238)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2023-05-04 08:18:01 +02:00

16 lines
380 B
TypeScript

import { readFileSync } from 'node:fs'
import { expect, test } from 'vitest'
import { toMatchImageSnapshot } from 'jest-image-snapshot'
declare module 'vitest' {
interface Assertion<T> {
toMatchImageSnapshot(): T
}
}
expect.extend({ toMatchImageSnapshot })
test('image snapshot', () => {
expect(readFileSync('./test/stubs/input-image.png')).toMatchImageSnapshot()
})