Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/vitest-dev/vitest
/ service-worker.test.ts
File
service-worker.test.ts
test/browser/fixtures/mocking/service-worker.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
{ server } from
'vitest/browser'
3
4
vi.mock(
"./src/actions"
, () => ({
Callers
nothing calls this directly
Calls
6
fetch
Function · 0.85
mock
Method · 0.80
mockReturnValue
Method · 0.80
plus
Function · 0.50
register
Method · 0.45
postMessage
Method · 0.45
Tested by
no test coverage detected