mirror of
https://github.com/hanzoai/vitest.git
synced 2026-09-24 17:04:25 +00:00
14 lines
189 B
TypeScript
14 lines
189 B
TypeScript
import { expect, test } from 'vitest'
|
|
|
|
test('a', () => {
|
|
snap('test1')
|
|
})
|
|
|
|
test('b', () => {
|
|
snap('test2')
|
|
})
|
|
|
|
function snap(value: unknown) {
|
|
expect(value).toMatchInlineSnapshot()
|
|
}
|