@@ -3,7 +3,7 @@ import { assertTypes, createSimpleStackTrace } from '@vitest/utils'
33import { parseSingleStack } from '../utils/source-map'
44import type { VitestMocker } from '../runtime/mocker'
55import type { ResolvedConfig , RuntimeConfig } from '../types'
6- import type { MockFactoryWithHelper , PromiseMockFactoryWithHelper } from '../types/mocker'
6+ import type { MockFactoryWithHelper } from '../types/mocker'
77import { getWorkerState } from '../utils/global'
88import { resetModules , waitForImportsToResolve } from '../utils/modules'
99import { isChildProcess } from '../utils/base'
@@ -194,8 +194,6 @@ export interface VitestUtils {
194194 mock ( path : string , factory ?: MockFactoryWithHelper ) : void
195195 // eslint-disable-next-line ts/method-signature-style
196196 mock < T > ( module : Promise < T > , factory ?: MockFactoryWithHelper < T > ) : void
197- // eslint-disable-next-line ts/method-signature-style
198- mock < T > ( module : Promise < T > , factory ?: PromiseMockFactoryWithHelper < T > ) : void
199197
200198 /**
201199 * Removes module from mocked registry. All calls to import will return the original module even if it was mocked before.
@@ -221,8 +219,6 @@ export interface VitestUtils {
221219 doMock ( path : string , factory ?: MockFactoryWithHelper ) : void
222220 // eslint-disable-next-line ts/method-signature-style
223221 doMock < T > ( module : Promise < T > , factory ?: MockFactoryWithHelper < T > ) : void
224- // eslint-disable-next-line ts/method-signature-style
225- doMock < T > ( module : Promise < T > , factory ?: PromiseMockFactoryWithHelper < T > ) : void
226222 /**
227223 * Removes module from mocked registry. All subsequent calls to import will return original module.
228224 *
0 commit comments