Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
1
import
{ expect } from
'vitest'
2
import
{ readCoverageMap, runVitest, test } from
'../utils'
3
4
test(
'vi.mock({ spy: true }) collects coverage of original module'
,
async
() => {
Callers
nothing calls this directly
Calls
5
runVitest
Function · 0.90
readCoverageMap
Function · 0.90
keys
Method · 0.80
test
Function · 0.50
sort
Method · 0.45
Tested by
no test coverage detected