(results)
| 34 | } |
| 35 | |
| 36 | function printTestSummary(results) { |
| 37 | const label = '--- Test Summary ---' |
| 38 | console.log(`\n${label}`) |
| 39 | for (const [appPath, { result, duration }] of results) { |
| 40 | let emoji |
| 41 | switch (result) { |
| 42 | case 'Passed': |
| 43 | emoji = '✅' |
| 44 | break |
| 45 | case 'Failed': |
| 46 | emoji = '❌' |
| 47 | break |
| 48 | case 'Error': |
| 49 | emoji = '💥' |
| 50 | break |
| 51 | case 'Incomplete': |
| 52 | emoji = '⏳' |
| 53 | break |
| 54 | default: |
| 55 | emoji = '❓' |
| 56 | } |
| 57 | console.log(`${emoji} ${appPath} (${duration.toFixed(2)}s)`) |
| 58 | } |
| 59 | console.log(`${'-'.repeat(label.length)}\n`) |
| 60 | } |
| 61 | |
| 62 | async function main() { |
| 63 | const allApps = (await getApps()).filter((app) => app.test.type === 'script') |
no outgoing calls
no test coverage detected