mirror of
https://github.com/hanzoai/vitest.git
synced 2026-09-24 17:04:25 +00:00
29 lines
355 B
TypeScript
29 lines
355 B
TypeScript
import { test, expect } from "vitest"
|
|
|
|
// pnpm -C test/snapshots test:fixtures --root test/fixtures/indent
|
|
|
|
test('toMatchSnapshot string', () => {
|
|
expect(`
|
|
1111
|
|
xxxx {
|
|
}
|
|
|
|
`).toMatchSnapshot()
|
|
})
|
|
|
|
test('toMatchInlineSnapshot string', () => {
|
|
expect(`
|
|
2222
|
|
yyyy {
|
|
}
|
|
|
|
`).toMatchInlineSnapshot(`
|
|
"
|
|
2222
|
|
yyyy {
|
|
}
|
|
|
|
"
|
|
`)
|
|
})
|