Skip to content

Commit

Permalink
fix(types): pass correct type for suite factory (#5437)
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va authored Mar 26, 2024
1 parent e5253de commit 26718eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runner/src/types/tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ export interface SuiteCollector<ExtraContext = {}> {
on: <T extends keyof SuiteHooks<ExtraContext>>(name: T, ...fn: SuiteHooks<ExtraContext>[T]) => void
}

export type SuiteFactory<ExtraContext = {}> = (test: (name: string | Function, fn: TestFunction<ExtraContext>) => void) => Awaitable<void>
export type SuiteFactory<ExtraContext = {}> = (test: TestAPI<ExtraContext>) => Awaitable<void>

export interface RuntimeContext {
tasks: (SuiteCollector | Test)[]
Expand Down

0 comments on commit 26718eb

Please sign in to comment.