We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
vitest-dev
sheremet-va
antfu
patak-dev
Learn more about funding links in repositories.
Report abuse
1 parent 40f2a77 commit 1304fedCopy full SHA for 1304fed
packages/vitest/globals.d.ts
@@ -13,5 +13,7 @@ declare global {
13
const afterAll: typeof import('vitest')['afterAll']
14
const beforeEach: typeof import('vitest')['beforeEach']
15
const afterEach: typeof import('vitest')['afterEach']
16
+ const onTestFailed: typeof import('vitest')['onTestFailed']
17
+ const onTestFinished: typeof import('vitest')['onTestFinished']
18
}
19
export {}
packages/vitest/src/constants.ts
@@ -68,4 +68,6 @@ export const globalApis = [
68
'afterAll',
69
'beforeEach',
70
'afterEach',
71
+ 'onTestFinished',
72
+ 'onTestFailed',
73
]
0 commit comments