Files
vitest/test/e2e/fixtures/fails/snapshot-with-not.test.ts

12 lines
274 B
TypeScript

import { expect, test } from "vitest"
test.each([
'toMatchSnapshot',
'toMatchFileSnapshot',
'toMatchInlineSnapshot',
'toThrowErrorMatchingSnapshot',
'toThrowErrorMatchingInlineSnapshot',
])('%s should fail with not', (api) => {
(expect(0).not as any)[api]()
})