diff --git a/packages/expect/src/types.ts b/packages/expect/src/types.ts index dc12f71a4..eea5e1f38 100644 --- a/packages/expect/src/types.ts +++ b/packages/expect/src/types.ts @@ -6,7 +6,6 @@ * */ -import type { Test } from '@vitest/runner' import type { MockInstance } from '@vitest/spy' import type { Formatter } from 'tinyrainbow' import type { AsymmetricMatcher } from './jest-asymmetric-matchers' @@ -83,7 +82,6 @@ export interface MatcherState { } soft?: boolean poll?: boolean - task?: Readonly } export interface SyncExpectationResult { diff --git a/packages/vitest/src/types/global.ts b/packages/vitest/src/types/global.ts index fc3bb5ee3..53297e36e 100644 --- a/packages/vitest/src/types/global.ts +++ b/packages/vitest/src/types/global.ts @@ -1,5 +1,6 @@ import type { ExpectStatic, PromisifyAssertion, Tester } from '@vitest/expect' import type { Plugin as PrettyFormatPlugin } from '@vitest/pretty-format' +import type { Test } from '@vitest/runner' import type { SnapshotState } from '@vitest/snapshot' import type { BenchmarkResult } from '../runtime/types/benchmark' import type { UserConsoleLog } from './general' @@ -25,6 +26,7 @@ declare module '@vitest/expect' { interface MatcherState { environment: string snapshotState: SnapshotState + task?: Readonly } interface ExpectPollOptions {