MCPcopy
hub / github.com/vitest-dev/vitest / mock-autospy.test.ts

File mock-autospy.test.ts

test/coverage-test/test/mock-autospy.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { expect } from 'vitest'
2import { readCoverageMap, runVitest, test } from '../utils'
3
4test('vi.mock({ spy: true }) collects coverage of original module', async () => {

Callers

nothing calls this directly

Calls 5

runVitestFunction · 0.90
readCoverageMapFunction · 0.90
keysMethod · 0.80
testFunction · 0.50
sortMethod · 0.45

Tested by

no test coverage detected