| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -72,16 +72,14 @@ function formatTestReport(type, data, prefix = '', indent = '', hasChildren = fa | |||
| 72 | 72 | title += ` # ${typeof todo === 'string' && todo.length ? todo : 'TODO'}`; | |
| 73 | 73 | } | |
| 74 | 74 | const error = formatError(data.details?.error, indent); | |
| 75 | - if (hasChildren) { | ||
| 76 | - // If this test has had children - it was already reported, so slightly modify the output | ||
| 77 | - const err = !error || data.details?.error?.failureType === 'subtestsFailed' ? '' : `\n${error}`; | ||
| 78 | - return `${prefix}${indent}${color}${reporterUnicodeSymbolMap['arrow:right']}${colors.white}${title}${err}`; | ||
| 79 | - } | ||
| 75 | + const err = hasChildren ? | ||
| 76 | + (!error || data.details?.error?.failureType === 'subtestsFailed' ? '' : `\n${error}`) : | ||
| 77 | + error; | ||
| 80 | 78 | if (skip !== undefined) { | |
| 81 | 79 | color = colors.gray; | |
| 82 | 80 | symbol = reporterUnicodeSymbolMap['hyphen:minus']; | |
| 83 | 81 | } | |
| 84 | - return `${prefix}${indent}${color}${symbol}${title}${colors.white}${error}`; | ||
| 82 | + return `${prefix}${indent}${color}${symbol}${title}${colors.white}${err}`; | ||
| 85 | 83 | } | |
| 86 | 84 | ||
| 87 | 85 | module.exports = { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -27,7 +27,7 @@ | |||
| 27 | 27 | [31m✖ should pass but parent fail [90m(*ms)[39m[39m | |
| 28 | 28 | [32m'test did not finish before its parent and was cancelled'[39m | |
| 29 | 29 | ||
| 30 | - [31m▶ [39mparent [90m(*ms)[39m | ||
| 30 | + [31m✖ parent [90m(*ms)[39m[39m | ||
| 31 | 31 | [34mℹ tests 6[39m | |
| 32 | 32 | [34mℹ suites 0[39m | |
| 33 | 33 | [34mℹ pass 1[39m | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,7 +12,7 @@ AFTER 2 | |||
| 12 | 12 | ✔ should run 1 (*ms) | |
| 13 | 13 | ﹣ should not run (*ms) # SKIP | |
| 14 | 14 | ✔ should run 2 (*ms) | |
| 15 | - ▶ suite runs with mixture of skipped tests (*ms) | ||
| 15 | + ✔ suite runs with mixture of skipped tests (*ms) | ||
| 16 | 16 | ℹ tests 4 | |
| 17 | 17 | ℹ suites 2 | |
| 18 | 18 | ℹ pass 2 | |
| Back | FazBrowse Home | New Git URL |
0 commit comments