MCPcopy Index your code
hub / github.com/npmx-dev/npmx.dev / logUnmockedRequest

Function logUnmockedRequest

modules/runtime/server/cache.ts:540–552  ·  view source on GitHub ↗

* Log a message to stderr with clear formatting for unmocked requests.

(type: string, detail: string, url: string)

Source from the content-addressed store, hash-verified

538 * Log a message to stderr with clear formatting for unmocked requests.
539 */
540function 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
554async function handleJsdelivrDataApi(
555 url: string,

Callers 1

fetchFromFixturesFunction · 0.85

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected