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