diff --git a/packages/runner/src/types/tasks.ts b/packages/runner/src/types/tasks.ts index afb822cb1e4f..daa043040c4d 100644 --- a/packages/runner/src/types/tasks.ts +++ b/packages/runner/src/types/tasks.ts @@ -306,7 +306,7 @@ export interface SuiteCollector { on: >(name: T, ...fn: SuiteHooks[T]) => void } -export type SuiteFactory = (test: (name: string | Function, fn: TestFunction) => void) => Awaitable +export type SuiteFactory = (test: TestAPI) => Awaitable export interface RuntimeContext { tasks: (SuiteCollector | Test)[]