(app: ReturnType<typeof createProxyApp>)
| 88 | }); |
| 89 | |
| 90 | async function startAt(app: ReturnType<typeof createProxyApp>): Promise<string> { |
| 91 | return new Promise((resolve) => { |
| 92 | server = app.listen(0, () => { |
| 93 | const addr = server!.address() as { port: number }; |
| 94 | resolve(`http://localhost:${addr.port}`); |
| 95 | }); |
| 96 | }); |
| 97 | } |
| 98 | |
| 99 | it('should serve schema at /api/schema endpoint', async () => { |
| 100 | const zmodel = ` |