(run: RunResponse)
| 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); |
no test coverage detected