(server)
| 261 | }, |
| 262 | configureServer: { |
| 263 | async handler(server) { |
| 264 | if (options.watch && process.env.VITE_TEST_WATCHER_DEBUG) { |
| 265 | server.watcher.on('ready', () => { |
| 266 | // eslint-disable-next-line no-console |
| 267 | console.log('[debug] watcher is ready') |
| 268 | }) |
| 269 | } |
| 270 | await vitest._setServer(options, server) |
| 271 | if (options.api && options.watch) { |
| 272 | (await import('../../api/setup')).setup(vitest) |
| 273 | } |
| 274 | |
| 275 | // #415, in run mode we don't need the watcher, close it would improve the performance |
| 276 | if (!options.watch) { |
| 277 | await server.watcher.close() |
| 278 | } |
| 279 | }, |
| 280 | }, |
| 281 | }, |
| 282 | MetaEnvReplacerPlugin(), |
nothing calls this directly
no test coverage detected