mirror of
https://github.com/hanzoai/vitest.git
synced 2026-09-24 17:04:25 +00:00
21 lines
334 B
TypeScript
21 lines
334 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-handler'
|
|
})
|
|
|
|
test.each([1, 2])('custom %s', () => {
|
|
// support locations
|
|
})
|