Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/vitest-dev/vitest
/ codeFrameGenerator
Function
codeFrameGenerator
packages/vitest/src/node/plugins/mocks.ts:24–30 ·
view source on GitHub ↗
(node, id, code)
Source
from the content-addressed store, hash-verified
22
return
true
23
},
24
codeFrameGenerator(node, id, code) {
25
return
generateCodeFrame(
26
code,
27
4,
28
node.start + 1,
29
)
30
},
31
}),
32
automockPlugin(),
33
]
Callers
nothing calls this directly
Calls
1
generateCodeFrame
Function · 0.90
Tested by
no test coverage detected