MCPcopy
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

1import { expect, test, vi } from "vitest";
2import { server } from 'vitest/browser'
3
4vi.mock("./src/actions", () => ({

Callers

nothing calls this directly

Calls 6

fetchFunction · 0.85
mockMethod · 0.80
mockReturnValueMethod · 0.80
plusFunction · 0.50
registerMethod · 0.45
postMessageMethod · 0.45

Tested by

no test coverage detected