Skip to content

Commit

Permalink
fix: repair TestFunction return type. (#1408)
Browse files Browse the repository at this point in the history
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
  • Loading branch information
Jordan-Hall and antfu committed Jun 5, 2022
1 parent fd57b0e commit f169f5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vitest/src/types/tasks.ts
Expand Up @@ -50,7 +50,7 @@ export interface Test<ExtraContext = {}> extends TaskBase {
export type Task = Test | Suite | File

export type DoneCallback = (error?: any) => void
export type TestFunction<ExtraContext = {}> = (context: TestContext & ExtraContext) => Awaitable<void>
export type TestFunction<ExtraContext = {}> = (context: TestContext & ExtraContext) => Awaitable<any>

// jest's ExtractEachCallbackArgs
type ExtractEachCallbackArgs<T extends ReadonlyArray<any>> = {
Expand Down

0 comments on commit f169f5a

Please sign in to comment.