MCPcopy
hub / github.com/tobi/qmd / randomPort

Function randomPort

test/cli.test.ts:2106–2108  ·  view source on GitHub ↗

Pick a random high port unlikely to conflict

()

Source from the content-addressed store, hash-verified

2104
2105 /** Pick a random high port unlikely to conflict */
2106 function randomPort(): number {
2107 return 10000 + Math.floor(Math.random() * 50000);
2108 }
2109
2110 beforeAll(async () => {
2111 daemonTestDir = await mkdtemp(join(tmpdir(), "qmd-daemon-test-"));

Callers 1

cli.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected