MCPcopy Index your code
hub / github.com/coder/coder / serviceWorker.test.ts

File serviceWorker.test.ts

site/src/serviceWorker.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import type { WebpushMessage } from "#/api/typesGenerated";
2
3// We need to mock the ServiceWorkerGlobalScope before importing the
4// module, since serviceWorker.ts registers event listeners at the

Callers

nothing calls this directly

Calls 6

makePushEventFunction · 0.85
pushMethod · 0.80
parseMethod · 0.80
beforeEachFunction · 0.50

Tested by

no test coverage detected