vitest/test/cli/fixtures/fails/inline-snapshop-inside-each.test.ts
2024-04-26 15:43:27 +02:00

28 lines
528 B
TypeScript

import { describe, expect, test } from 'vitest'
test.each([1])('', () => {
expect('').toMatchInlineSnapshot()
})
describe.each([1])('', () => {
test('', () => {
expect('').toMatchInlineSnapshot()
})
test.each([1])('', () => {
expect('').toMatchInlineSnapshot()
})
test('', () => {
expect(() => {
throw new Error('1')
}).toThrowErrorMatchingInlineSnapshot()
})
test.each([1])('', () => {
expect(() => {
throw new Error('1')
}).toThrowErrorMatchingInlineSnapshot()
})
})