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

Function triggerThenTerminal

src/commands/test.run.spec.ts:3286–3293  ·  view source on GitHub ↗
(run: RunResponse)

Source from the content-addressed store, hash-verified

3284 const PROD_API = 'https://api.testsprite.com';
3285
3286 function triggerThenTerminal(run: RunResponse): typeof globalThis.fetch {
3287 return makeFetch(url => {
3288 if (url.includes('/tests/') && url.includes('/runs') && !url.includes('/runs/run_abc')) {
3289 return { body: TRIGGER_RESP };
3290 }
3291 return { body: run };
3292 });
3293 }
3294
3295 it('run --wait (JSON, prod endpoint): final envelope includes dashboardUrl', async () => {
3296 const { credentialsPath } = makeCreds('sk-user-test', PROD_API);

Callers 1

test.run.spec.tsFile · 0.85

Calls 1

makeFetchFunction · 0.70

Tested by

no test coverage detected