(message, type = 'info')
| 40 | let failedTests = 0; |
| 41 | |
| 42 | function log(message, type = 'info') { |
| 43 | const colors = { |
| 44 | info: '\x1b[0m', |
| 45 | success: '\x1b[32m', |
| 46 | error: '\x1b[31m', |
| 47 | warning: '\x1b[33m' |
| 48 | }; |
| 49 | console.log(`${colors[type]}${message}\x1b[0m`); |
| 50 | } |
| 51 | |
| 52 | async function test(description, testFn) { |
| 53 | totalTests++; |
no outgoing calls
no test coverage detected