mirror of
https://github.com/hanzoai/vitest.git
synced 2026-09-24 17:04:25 +00:00
13 lines
294 B
TypeScript
13 lines
294 B
TypeScript
import { expect, test } from 'vitest'
|
|
|
|
test('inline repeats', { repeats: 1 }, () => {
|
|
expect('foo').toMatchInlineSnapshot()
|
|
})
|
|
|
|
test('inline retry', { retry: 1 }, (ctx) => {
|
|
expect('foo').toMatchInlineSnapshot()
|
|
if (ctx.task.result?.retryCount === 0) {
|
|
throw new Error('boom')
|
|
}
|
|
})
|