Files
2026-05-11 17:46:13 +02:00

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')
}
})