MCPcopy Create free account
hub / github.com/TestSprite/testsprite-cli / facadeBaseUrl

Function facadeBaseUrl

src/lib/facade.ts:9–13  ·  view source on GitHub ↗
(endpointUrl: string)

Source from the content-addressed store, hash-verified

7export const FACADE_PATH = '/api/cli/v1';
8
9export function facadeBaseUrl(endpointUrl: string): string {
10 const trimmed = endpointUrl.endsWith('/') ? endpointUrl.slice(0, -1) : endpointUrl;
11 if (trimmed.endsWith(FACADE_PATH)) return trimmed;
12 return `${trimmed}${FACADE_PATH}`;
13}
14
15/**
16 * Resolve the Portal dashboard deep-link for a test, given the API endpoint URL

Callers 3

runConfigureFunction · 0.85
makeHttpClientFunction · 0.85
facade.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected