Skip to content

Commit

Permalink
fix(types): pass correct type for suite factory
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Mar 26, 2024
1 parent fee7d8b commit 9b9c011
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 9b9c011

Please sign in to comment.