MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / log

Function log

tests/extension-fields.test.cjs:49–57  ·  view source on GitHub ↗
(message, type = 'info')

Source from the content-addressed store, hash-verified

47let failedTests = 0;
48
49function log(message, type = 'info') {
50 const colors = {
51 info: '\x1b[0m',
52 success: '\x1b[32m',
53 error: '\x1b[31m',
54 warning: '\x1b[33m'
55 };
56 console.log(`${colors[type]}${message}\x1b[0m`);
57}
58
59async function test(description, testFn) {
60 totalTests++;

Callers 3

testFunction · 0.70
runTestsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected