mirror of
https://github.com/vitest-dev/vitest.git
synced 2025-12-08 18:26:03 +00:00
docs: improve onTestFailed and onTestFinished jsdoc (#9175)
This commit is contained in:
parent
f17eb423d4
commit
220c0d58d7
@ -712,13 +712,15 @@ export interface TestContext {
|
||||
readonly signal: AbortSignal
|
||||
|
||||
/**
|
||||
* Extract hooks on test failed
|
||||
* Register a callback to run when this specific test fails.
|
||||
* Useful when tests run concurrently.
|
||||
* @see {@link https://vitest.dev/guide/test-context#ontestfailed}
|
||||
*/
|
||||
readonly onTestFailed: (fn: OnTestFailedHandler, timeout?: number) => void
|
||||
|
||||
/**
|
||||
* Extract hooks on test failed
|
||||
* Register a callback to run when this specific test finishes.
|
||||
* Useful when tests run concurrently.
|
||||
* @see {@link https://vitest.dev/guide/test-context#ontestfinished}
|
||||
*/
|
||||
readonly onTestFinished: (fn: OnTestFinishedHandler, timeout?: number) => void
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user