Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
1
import
{ expect, test, vi } from
'vitest'
2
import
{ calculator } from
'./src/calculator'
3
4
vi.mock(
'./src/calculator'
)
Callers
nothing calls this directly
Calls
4
calculator
Function · 0.90
mock
Method · 0.80
mockReturnValue
Method · 0.80
test
Function · 0.50
Tested by
no test coverage detected