| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -24,6 +24,7 @@ const reporterUnicodeSymbolMap = { | |||
| 24 | 24 | 'test:coverage': '\u2139 ', | |
| 25 | 25 | 'arrow:right': '\u25B6 ', | |
| 26 | 26 | 'hyphen:minus': '\uFE63 ', | |
| 27 | + 'warning:alert': '\u26A0 ', | ||
| 27 | 28 | }; | |
| 28 | 29 | ||
| 29 | 30 | const reporterColorMap = { | |
@@ -76,18 +77,20 @@ function formatTestReport(type, data, showErrorDetails = true, prefix = '', inde | |||
| 76 | 77 | ||
| 77 | 78 | if (skip !== undefined) { | |
| 78 | 79 | title += ` # ${typeof skip === 'string' && skip.length ? skip : 'SKIP'}`; | |
| 80 | + color = colors.gray; | ||
| 81 | + symbol = reporterUnicodeSymbolMap['hyphen:minus']; | ||
| 79 | 82 | } else if (todo !== undefined) { | |
| 80 | 83 | title += ` # ${typeof todo === 'string' && todo.length ? todo : 'TODO'}`; | |
| 84 | + if (type === 'test:fail') { | ||
| 85 | + color = colors.yellow; | ||
| 86 | + symbol = reporterUnicodeSymbolMap['warning:alert']; | ||
| 87 | + } | ||
| 81 | 88 | } else if (expectFailure !== undefined) { | |
| 82 | 89 | title += ` # EXPECTED FAILURE`; | |
| 83 | 90 | } | |
| 84 | 91 | ||
| 85 | 92 | const err = showErrorDetails && data.details?.error ? formatError(data.details.error, indent) : ''; | |
| 86 | 93 | ||
| 87 | - if (skip !== undefined) { | ||
| 88 | - color = colors.gray; | ||
| 89 | - symbol = reporterUnicodeSymbolMap['hyphen:minus']; | ||
| 90 | - } | ||
| 91 | 94 | return `${prefix}${indent}${color}${symbol}${title}${colors.white}${err}`; | |
| 92 | 95 | } | |
| 93 | 96 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,7 +6,7 @@ X | |||
| 6 | 6 | ||
| 7 | 7 | Failed tests: | |
| 8 | 8 | ||
| 9 | - ✖ sync fail todo (*ms) # TODO | ||
| 9 | + ⚠ sync fail todo (*ms) # TODO | ||
| 10 | 10 | Error: thrown from sync fail todo | |
| 11 | 11 | * | |
| 12 | 12 | * | |
@@ -15,7 +15,7 @@ Failed tests: | |||
| 15 | 15 | * | |
| 16 | 16 | * | |
| 17 | 17 | * | |
| 18 | - ✖ sync fail todo with message (*ms) # this is a failing todo | ||
| 18 | + ⚠ sync fail todo with message (*ms) # this is a failing todo | ||
| 19 | 19 | Error: thrown from sync fail todo with message | |
| 20 | 20 | * | |
| 21 | 21 | * | |
| Back | FazBrowse Home | New Git URL |
0 commit comments