MCPcopy Create free account
hub / github.com/ShipSecAI/studio / readInstance

Function readInstance

e2e-tests/helpers/api-base.ts:4–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2const BACKEND_BASE_PORT = 3211;
3
4function readInstance(): number {
5 const raw = process.env.E2E_INSTANCE ?? process.env.SHIPSEC_INSTANCE ?? String(DEFAULT_INSTANCE);
6 const parsed = Number.parseInt(raw, 10);
7 if (Number.isNaN(parsed) || parsed < 0) {
8 return DEFAULT_INSTANCE;
9 }
10 return parsed;
11}
12
13export function getE2EInstance(): number {
14 return readInstance();

Callers 1

getE2EInstanceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected