()
| 397 | } |
| 398 | |
| 399 | public async waitForHotReload(): Promise<void> { |
| 400 | // We might get the text in either stderr or stdout depending on |
| 401 | // whether an error occurred during reassemble. |
| 402 | await Promise.race([ |
| 403 | this.assertOutputContains("stdout", "Reloaded"), |
| 404 | this.assertOutputContains("stderr", "Reloaded"), |
| 405 | // TODO: Remove these two when web isn't doing restarts for reloads. |
| 406 | this.assertOutputContains("stdout", "Restarted"), |
| 407 | this.assertOutputContains("stderr", "Restarted"), |
| 408 | ]); |
| 409 | } |
| 410 | |
| 411 | public async hotReload(): Promise<void> { |
| 412 | // If we reload too fast, things fail :-/ |
no test coverage detected