Skip to content

Commit

Permalink
feat(vitest): expose getHooks & setHooks (#5032)
Browse files Browse the repository at this point in the history
  • Loading branch information
adriencaccia authored Jan 23, 2024
1 parent 36bc699 commit 7344870
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/runner/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export { startTests, updateTask } from './run'
export { test, it, describe, suite, getCurrentSuite, createTaskCollector } from './suite'
export { beforeAll, beforeEach, afterAll, afterEach, onTestFailed } from './hooks'
export { setFn, getFn } from './map'
export { setFn, getFn, getHooks, setHooks } from './map'
export { getCurrentTest } from './test-state'
export { processError } from '@vitest/utils/error'
export * from './types'
2 changes: 1 addition & 1 deletion packages/vitest/src/suite.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export { getCurrentSuite, createTaskCollector, getFn, setFn } from '@vitest/runner'
export { getCurrentSuite, createTaskCollector, getFn, setFn, getHooks, setHooks } from '@vitest/runner'
export { createChainable } from '@vitest/runner/utils'
export { getBenchFn, getBenchOptions } from './runtime/benchmark'

0 comments on commit 7344870

Please sign in to comment.