MCPcopy
hub / github.com/vitest-dev/vitest / mock

Method mock

packages/vitest/src/integrations/vi.ts:245–245  ·  view source on GitHub ↗
(path: string, factory?: MockFactoryWithHelper | MockOptions)

Source from the content-addressed store, hash-verified

243 */
244 // eslint-disable-next-line ts/method-signature-style
245 mock(path: string, factory?: MockFactoryWithHelper | MockOptions): void
246 // eslint-disable-next-line ts/method-signature-style
247 mock<T>(module: Promise<T>, factory?: MockFactoryWithHelper<T> | MockOptions): void
248

Calls

no outgoing calls

Tested by

no test coverage detected