[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
12

Configure Feed

Select the types of activity you want to include in your feed.

fix: `describe` calls not taking generic type parameters (#5415)

authored by

Arya Emami and committed by
GitHub
(Mar 26, 2024, 3:46 PM +0100) 16bacfab b3be54d0

+3 -3
+3 -3
packages/runner/src/types/tasks.ts
··· 251 251 /** 252 252 * @deprecated Use options as the second argument instead 253 253 */ 254 - (name: string | Function, fn: SuiteFactory<ExtraContext>, options: TestOptions): SuiteCollector<ExtraContext> 255 - (name: string | Function, fn?: SuiteFactory<ExtraContext>, options?: number | TestOptions): SuiteCollector<ExtraContext> 256 - (name: string | Function, options: TestOptions, fn?: SuiteFactory<ExtraContext>): SuiteCollector<ExtraContext> 254 + <OverrideExtraContext extends ExtraContext = ExtraContext>(name: string | Function, fn: SuiteFactory<OverrideExtraContext>, options: TestOptions): SuiteCollector<OverrideExtraContext> 255 + <OverrideExtraContext extends ExtraContext = ExtraContext>(name: string | Function, fn?: SuiteFactory<OverrideExtraContext>, options?: number | TestOptions): SuiteCollector<OverrideExtraContext> 256 + <OverrideExtraContext extends ExtraContext = ExtraContext>(name: string | Function, options: TestOptions, fn?: SuiteFactory<OverrideExtraContext>): SuiteCollector<OverrideExtraContext> 257 257 } 258 258 259 259 type ChainableSuiteAPI<ExtraContext = {}> = ChainableFunction<