()
| 82 | }) |
| 83 | |
| 84 | async function masterBall() { |
| 85 | const app = await createApp(defaultArgs) |
| 86 | |
| 87 | const testError = new Error("Test error") |
| 88 | |
| 89 | app.server.emit("error", testError) |
| 90 | |
| 91 | // Cleanup |
| 92 | app.dispose() |
| 93 | } |
| 94 | |
| 95 | expect(() => masterBall()).rejects.toThrow("listen EACCES: permission denied") |
| 96 | }) |
no test coverage detected