mirror of
https://github.com/hanzoai/vitest.git
synced 2026-09-24 17:04:25 +00:00
14 lines
281 B
TypeScript
14 lines
281 B
TypeScript
import { expect, test } from 'vitest'
|
|
import "../domain/basic-extend"
|
|
|
|
test('file', () => {
|
|
expect({ name: 'alice', age: '30' }).toMatchKvSnapshot()
|
|
})
|
|
|
|
test('inline', () => {
|
|
expect({ name: 'alice', age: '30' }).toMatchKvInlineSnapshot(`
|
|
name=bob
|
|
inine-broken
|
|
`)
|
|
})
|