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

Function updated

playground/hmr-ssr/__tests__/hmr-ssr.spec.ts:46–51  ·  view source on GitHub ↗
(file: string, via?: string)

Source from the content-addressed store, hash-verified

44const hmr = (key: string) => (globalThis.__HMR__[key] as string) || ''
45
46const updated = (file: string, via?: string) => {
47 if (via) {
48 return `[vite] hot updated: ${file} via ${via}`
49 }
50 return `[vite] hot updated: ${file}`
51}
52
53describe.skipIf(isBuild)('hmr works correctly', () => {
54 const hotEventCounts = { connect: 0, disconnect: 0 }

Callers 2

hmr-ssr.spec.tsFile · 0.85
testStarExportsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected