mirror of
https://github.com/hanzoai/vitest.git
synced 2026-09-24 17:04:25 +00:00
15 lines
341 B
TypeScript
15 lines
341 B
TypeScript
import { expect, test } from 'vitest'
|
|
import "./basic-extend"
|
|
|
|
test('all literal', () => {
|
|
expect({ name: 'alice', age: '30' }).toMatchKvSnapshot()
|
|
})
|
|
|
|
test('with regex', () => {
|
|
expect({ name: 'bob', age: '24', score: '999', status: 'active' }).toMatchKvSnapshot()
|
|
})
|
|
|
|
test('empty snapshot', () => {
|
|
expect({}).toMatchKvSnapshot()
|
|
})
|