@@ -297,17 +297,8 @@ export interface TestAnnotation {
297297 attachment ?: TestAttachment
298298}
299299
300- /**
301- * @deprecated Use `Test` instead. `type: 'custom'` is not used since 2.2
302- */
303- export type Custom < ExtraContext = object > = Test < ExtraContext >
304-
305300export type Task = Test | Suite | File
306301
307- /**
308- * @deprecated Vitest doesn't provide `done()` anymore
309- */
310- export type DoneCallback = ( error ?: any ) => void
311302export type TestFunction < ExtraContext = object > = (
312303 context : TestContext & ExtraContext
313304) => Awaitable < any > | void
@@ -517,9 +508,6 @@ export type TestAPI<ExtraContext = object> = ChainableTestAPI<ExtraContext> &
517508 ) => void
518509 }
519510
520- /** @deprecated use `TestAPI` instead */
521- export type { TestAPI as CustomAPI }
522-
523511export interface FixtureOptions {
524512 /**
525513 * Whether to automatically set up current fixture, even though it's not being used in tests.
@@ -743,15 +731,6 @@ export interface TestContext {
743731 }
744732}
745733
746- /**
747- * Context that's always available in the test function.
748- * @deprecated use `TestContext` instead
749- */
750- export interface TaskContext extends TestContext { }
751-
752- /** @deprecated use `TestContext` instead */
753- export type ExtendedContext = TaskContext & TestContext
754-
755734export type OnTestFailedHandler = ( context : TestContext ) => Awaitable < void >
756735export type OnTestFinishedHandler = ( context : TestContext ) => Awaitable < void >
757736
0 commit comments