Skip to content

Commit 26718eb

Browse files
authored
fix(types): pass correct type for suite factory (#5437)
1 parent e5253de commit 26718eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runner/src/types/tasks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ export interface SuiteCollector<ExtraContext = {}> {
306306
on: <T extends keyof SuiteHooks<ExtraContext>>(name: T, ...fn: SuiteHooks<ExtraContext>[T]) => void
307307
}
308308

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

311311
export interface RuntimeContext {
312312
tasks: (SuiteCollector | Test)[]

0 commit comments

Comments
 (0)