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

Function handleHotUpdate

packages/vite/src/node/__tests__/plugins/hooks.spec.ts:243–255  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

241 const server = await createServerWithPlugin({
242 name: 'test',
243 handleHotUpdate() {
244 expect(this).toMatchObject({
245 debug: expect.any(Function),
246 info: expect.any(Function),
247 warn: expect.any(Function),
248 error: expect.any(Function),
249 meta: expect.any(Object),
250 })
251 expect(this.meta.rollupVersion).toBeTypeOf('string')
252 expect(this.meta.viteVersion).toBeTypeOf('string')
253 expect(this.meta.watchMode).toBe(true)
254 resolve()
255 },
256 })
257 server.watcher.emit(
258 'change',

Callers

nothing calls this directly

Calls 1

resolveFunction · 0.50

Tested by

no test coverage detected