* Log a message to stderr with clear formatting for unmocked requests.
(type: string, detail: string, url: string)
| 538 | * Log a message to stderr with clear formatting for unmocked requests. |
| 539 | */ |
| 540 | function logUnmockedRequest(type: string, detail: string, url: string): void { |
| 541 | process.stderr.write( |
| 542 | `\n` + |
| 543 | `━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n` + |
| 544 | `[test-fixtures] ${type}\n` + |
| 545 | `━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n` + |
| 546 | `${detail}\n` + |
| 547 | `URL: ${url}\n` + |
| 548 | `\n` + |
| 549 | `To fix: Add a fixture file or update test/e2e/test-utils.ts\n` + |
| 550 | `━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n`, |
| 551 | ) |
| 552 | } |
| 553 | |
| 554 | async function handleJsdelivrDataApi( |
| 555 | url: string, |
no test coverage detected