mirror of
https://github.com/hanzoai/vitest.git
synced 2026-09-24 17:04:25 +00:00
21 lines
410 B
JavaScript
21 lines
410 B
JavaScript
import { expect, test } from 'vitest'
|
|
|
|
test('same title exist', () => {
|
|
// correct entry exists in .snap
|
|
expect('a').toMatchSnapshot()
|
|
})
|
|
|
|
test('same title exist', () => {
|
|
// wrong entry exists in .snap
|
|
expect('b').toMatchSnapshot()
|
|
})
|
|
|
|
test('same title new', () => {
|
|
expect('a').toMatchSnapshot()
|
|
})
|
|
|
|
test('same title new', () => {
|
|
expect('b').toMatchSnapshot()
|
|
expect('c').toMatchSnapshot()
|
|
})
|