mirror of
https://github.com/hanzoai/vitest.git
synced 2026-10-30 14:46:34 +00:00
12 lines
274 B
TypeScript
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]()
|
|
})
|