MCPcopy Index your code
hub / github.com/zenstackhq/zenstack / startAt

Function startAt

packages/cli/test/proxy.test.ts:90–97  ·  view source on GitHub ↗
(app: ReturnType<typeof createProxyApp>)

Source from the content-addressed store, hash-verified

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 = `

Callers 1

proxy.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected