(file: string, via?: string)
| 44 | const hmr = (key: string) => (globalThis.__HMR__[key] as string) || '' |
| 45 | |
| 46 | const 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 | |
| 53 | describe.skipIf(isBuild)('hmr works correctly', () => { |
| 54 | const hotEventCounts = { connect: 0, disconnect: 0 } |
no outgoing calls
no test coverage detected