Skip to content

Commit

Permalink
fix(vitest): expose onTestFinished globally
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Feb 12, 2024
1 parent 40f2a77 commit 1304fed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/vitest/globals.d.ts
Expand Up @@ -13,5 +13,7 @@ declare global {
const afterAll: typeof import('vitest')['afterAll']
const beforeEach: typeof import('vitest')['beforeEach']
const afterEach: typeof import('vitest')['afterEach']
const onTestFailed: typeof import('vitest')['onTestFailed']
const onTestFinished: typeof import('vitest')['onTestFinished']
}
export {}
2 changes: 2 additions & 0 deletions packages/vitest/src/constants.ts
Expand Up @@ -68,4 +68,6 @@ export const globalApis = [
'afterAll',
'beforeEach',
'afterEach',
'onTestFinished',
'onTestFailed',
]

0 comments on commit 1304fed

Please sign in to comment.