()
| 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', |