MCPcopy
hub / github.com/vitest-dev/vitest / automocked.test.ts

File automocked.test.ts

test/browser/fixtures/mocking/automocked.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { expect, test, vi } from 'vitest'
2import { calculator } from './src/calculator'
3
4vi.mock('./src/calculator')

Callers

nothing calls this directly

Calls 4

calculatorFunction · 0.90
mockMethod · 0.80
mockReturnValueMethod · 0.80
testFunction · 0.50

Tested by

no test coverage detected