diff --git a/packages/runner/src/types/tasks.ts b/packages/runner/src/types/tasks.ts index aff756cab294..9e1ac191dc92 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)[]