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

Function getDefaultConfig

packages/spy/src/index.ts:658–665  ·  view source on GitHub ↗
(original?: Procedure | Constructable)

Source from the content-addressed store, hash-verified

656}
657
658function getDefaultConfig(original?: Procedure | Constructable): MockConfig {
659 return {
660 mockImplementation: undefined,
661 mockOriginal: original,
662 mockName: 'vi.fn()',
663 onceMockImplementations: [],
664 }
665}
666
667function getDefaultState(): MockContext {
668 const state = {

Callers 1

createMockInstanceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected