mirror of
https://github.com/vitest-dev/vitest.git
synced 2025-12-08 18:26:03 +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()
|
|
})
|