MCPcopy
hub / github.com/vitejs/vite / fetchHotEvents

Function fetchHotEvents

playground/hmr/__tests__/hmr.spec.ts:33–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31 })
32
33 const fetchHotEvents = async (): Promise<{
34 connectCount: number
35 disconnectCount: number
36 }> => {
37 const res = await fetch(viteTestUrl + '/hot-events-counts')
38 return res.json()
39 }
40 test('hot events', async () => {
41 expect(await fetchHotEvents()).toStrictEqual({
42 connectCount: 1,

Callers 1

hmr.spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected