Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/vitest-dev/vitest
/ asyncFn
Function
asyncFn
test/core/test/jest-mock.test.ts:106–108 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
104
}
105
106
function
asyncFn() {
107
return
Promise.resolve(1)
108
}
109
110
const
mock1 = vi.fn(fn)
111
const
mock2 = vi.fn(asyncFn)
Callers
nothing calls this directly
Calls
1
resolve
Method · 0.45
Tested by
no test coverage detected