vitest/test/cli/fixtures/public-api/custom.spec.ts
2024-04-26 15:43:27 +02:00

21 lines
330 B
TypeScript

import { afterAll, test } from 'vitest'
declare module 'vitest' {
interface TaskMeta {
done?: boolean
custom?: string
}
}
afterAll((suite) => {
suite.meta.done = true
})
test('custom', ({ task }) => {
task.meta.custom = 'some-custom-hanlder'
})
test.each([1, 2])('custom %s', () => {
// support locations
})