Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/vitest-dev/vitest
/ add
Method
add
packages/mocker/src/registry.ts:14–17 ·
view source on GitHub ↗
(mock: MockedModule)
Source
from the content-addressed store, hash-verified
12
}
13
14
add(mock: MockedModule): void {
15
this.registryByUrl.set(mock.url, mock)
16
this.registryById.set(mock.id, mock)
17
}
18
19
public register(
20
json: MockedModuleSerialized,
Callers
15
register
Method · 0.95
markReady
Method · 0.45
warnReload
Method · 0.45
sendEventToIframe
Method · 0.45
extend
Function · 0.45
safeSendCall
Function · 0.45
BrowserTestRunner
Class · 0.45
spawn
Method · 0.45
snapshotSaved
Function · 0.45
registerMock
Function · 0.45
onFileTransform
Method · 0.45
invalidateTree
Method · 0.45
Calls
1
set
Method · 0.45
Tested by
no test coverage detected