| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent ac9e5e7 commit e57992f
6 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -83,8 +83,8 @@ class SpecReporter extends Transform { | |||
| 83 | 83 | const error = this.#formatError(data.details?.error, indent); | |
| 84 | 84 | if (hasChildren) { | |
| 85 | 85 | // If this test has had children - it was already reported, so slightly modify the output | |
| 86 | - const err = data.details?.error?.failureType === 'subtestsFailed' ? '' : error; | ||
| 87 | - return `${prefix}${indent}${color}${symbols['arrow:right']}${colors.white}${title}\n${err}`; | ||
| 86 | + const err = !error || data.details?.error?.failureType === 'subtestsFailed' ? '' : `\n${error}`; | ||
| 87 | + return `${prefix}${indent}${color}${symbols['arrow:right']}${colors.white}${title}${err}`; | ||
| 88 | 88 | } | |
| 89 | 89 | if (skip !== undefined) { | |
| 90 | 90 | color = colors.gray; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -28,7 +28,6 @@ | |||
| 28 | 28 | [32m'test did not finish before its parent and was cancelled'[39m | |
| 29 | 29 | ||
| 30 | 30 | [31m▶ [39mparent [90m(*ms)[39m | |
| 31 | - | ||
| 32 | 31 | [34mℹ tests 6[39m | |
| 33 | 32 | [34mℹ suites 0[39m | |
| 34 | 33 | [34mℹ pass 1[39m | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,9 +6,7 @@ | |||
| 6 | 6 | nested 1 (*ms) | |
| 7 | 7 | nested 2 (*ms) | |
| 8 | 8 | nested (*ms) | |
| 9 | - | ||
| 10 | 9 | describe hooks (*ms) | |
| 11 | - | ||
| 12 | 10 | describe hooks - no subtests (*ms) | |
| 13 | 11 | before throws | |
| 14 | 12 | 1 | |
@@ -96,7 +94,6 @@ | |||
| 96 | 94 | * | |
| 97 | 95 | ||
| 98 | 96 | beforeEach throws (*ms) | |
| 99 | - | ||
| 100 | 97 | afterEach throws | |
| 101 | 98 | 1 (*ms) | |
| 102 | 99 | Error: afterEach | |
@@ -124,7 +121,6 @@ | |||
| 124 | 121 | * | |
| 125 | 122 | ||
| 126 | 123 | afterEach throws (*ms) | |
| 127 | - | ||
| 128 | 124 | afterEach when test fails | |
| 129 | 125 | 1 (*ms) | |
| 130 | 126 | Error: test | |
@@ -141,7 +137,6 @@ | |||
| 141 | 137 | ||
| 142 | 138 | 2 (*ms) | |
| 143 | 139 | afterEach when test fails (*ms) | |
| 144 | - | ||
| 145 | 140 | afterEach throws and test fails | |
| 146 | 141 | 1 (*ms) | |
| 147 | 142 | Error: test | |
@@ -169,17 +164,14 @@ | |||
| 169 | 164 | * | |
| 170 | 165 | ||
| 171 | 166 | afterEach throws and test fails (*ms) | |
| 172 | - | ||
| 173 | 167 | test hooks | |
| 174 | 168 | 1 (*ms) | |
| 175 | 169 | 2 (*ms) | |
| 176 | 170 | nested | |
| 177 | 171 | nested 1 (*ms) | |
| 178 | 172 | nested 2 (*ms) | |
| 179 | 173 | nested (*ms) | |
| 180 | - | ||
| 181 | 174 | test hooks (*ms) | |
| 182 | - | ||
| 183 | 175 | test hooks - no subtests (*ms) | |
| 184 | 176 | t.before throws | |
| 185 | 177 | 1 (*ms) | |
@@ -293,7 +285,6 @@ | |||
| 293 | 285 | * | |
| 294 | 286 | ||
| 295 | 287 | t.beforeEach throws (*ms) | |
| 296 | - | ||
| 297 | 288 | t.afterEach throws | |
| 298 | 289 | 1 (*ms) | |
| 299 | 290 | Error: afterEach | |
@@ -322,7 +313,6 @@ | |||
| 322 | 313 | * | |
| 323 | 314 | ||
| 324 | 315 | t.afterEach throws (*ms) | |
| 325 | - | ||
| 326 | 316 | afterEach when test fails | |
| 327 | 317 | 1 (*ms) | |
| 328 | 318 | Error: test | |
@@ -338,11 +328,9 @@ | |||
| 338 | 328 | ||
| 339 | 329 | 2 (*ms) | |
| 340 | 330 | afterEach when test fails (*ms) | |
| 341 | - | ||
| 342 | 331 | afterEach context when test passes | |
| 343 | 332 | 1 (*ms) | |
| 344 | 333 | afterEach context when test passes (*ms) | |
| 345 | - | ||
| 346 | 334 | afterEach context when test fails | |
| 347 | 335 | 1 (*ms) | |
| 348 | 336 | Error: test | |
@@ -352,7 +340,6 @@ | |||
| 352 | 340 | * | |
| 353 | 341 | ||
| 354 | 342 | afterEach context when test fails (*ms) | |
| 355 | - | ||
| 356 | 343 | afterEach throws and test fails | |
| 357 | 344 | 1 (*ms) | |
| 358 | 345 | Error: test | |
@@ -380,7 +367,6 @@ | |||
| 380 | 367 | * | |
| 381 | 368 | ||
| 382 | 369 | afterEach throws and test fails (*ms) | |
| 383 | - | ||
| 384 | 370 | t.after() is called if test body throws (*ms) | |
| 385 | 371 | Error: bye | |
| 386 | 372 | * | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -107,7 +107,6 @@ | |||
| 107 | 107 | ||
| 108 | 108 | this subtest should make its parent test fail | |
| 109 | 109 | subtest sync throw fail (*ms) | |
| 110 | - | ||
| 111 | 110 | sync throw non-error fail (*ms) | |
| 112 | 111 | Symbol(thrown symbol from sync throw non-error fail) | |
| 113 | 112 | ||
@@ -117,17 +116,14 @@ | |||
| 117 | 116 | level 1c (*ms) | |
| 118 | 117 | level 1d (*ms) | |
| 119 | 118 | level 0a (*ms) | |
| 120 | - | ||
| 121 | 119 | top level | |
| 122 | 120 | +long running (*ms) | |
| 123 | 121 | 'test did not finish before its parent and was cancelled' | |
| 124 | 122 | ||
| 125 | 123 | +short running | |
| 126 | 124 | ++short running (*ms) | |
| 127 | 125 | +short running (*ms) | |
| 128 | - | ||
| 129 | 126 | top level (*ms) | |
| 130 | - | ||
| 131 | 127 | invalid subtest - pass but subtest fails (*ms) | |
| 132 | 128 | sync skip option (*ms) # SKIP | |
| 133 | 129 | sync skip option with message (*ms) # this is skipped | |
@@ -197,7 +193,6 @@ | |||
| 197 | 193 | 'only' and 'runOnly' require the --test-only command-line option. | |
| 198 | 194 | running subtest 4 (*ms) | |
| 199 | 195 | only is set but not in only mode (*ms) | |
| 200 | - | ||
| 201 | 196 | 'only' and 'runOnly' require the --test-only command-line option. | |
| 202 | 197 | custom inspect symbol fail (*ms) | |
| 203 | 198 | customized | |
@@ -231,7 +226,6 @@ | |||
| 231 | 226 | * | |
| 232 | 227 | ||
| 233 | 228 | subtest sync throw fails (*ms) | |
| 234 | - | ||
| 235 | 229 | timed out async test (*ms) | |
| 236 | 230 | 'test timed out after *ms' | |
| 237 | 231 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -107,7 +107,6 @@ | |||
| 107 | 107 | ||
| 108 | 108 | this subtest should make its parent test fail | |
| 109 | 109 | subtest sync throw fail (*ms) | |
| 110 | - | ||
| 111 | 110 | sync throw non-error fail (*ms) | |
| 112 | 111 | Symbol(thrown symbol from sync throw non-error fail) | |
| 113 | 112 | ||
@@ -117,17 +116,14 @@ | |||
| 117 | 116 | level 1c (*ms) | |
| 118 | 117 | level 1d (*ms) | |
| 119 | 118 | level 0a (*ms) | |
| 120 | - | ||
| 121 | 119 | top level | |
| 122 | 120 | +long running (*ms) | |
| 123 | 121 | 'test did not finish before its parent and was cancelled' | |
| 124 | 122 | ||
| 125 | 123 | +short running | |
| 126 | 124 | ++short running (*ms) | |
| 127 | 125 | +short running (*ms) | |
| 128 | - | ||
| 129 | 126 | top level (*ms) | |
| 130 | - | ||
| 131 | 127 | invalid subtest - pass but subtest fails (*ms) | |
| 132 | 128 | sync skip option (*ms) # SKIP | |
| 133 | 129 | sync skip option with message (*ms) # this is skipped | |
@@ -197,7 +193,6 @@ | |||
| 197 | 193 | 'only' and 'runOnly' require the --test-only command-line option. | |
| 198 | 194 | running subtest 4 (*ms) | |
| 199 | 195 | only is set but not in only mode (*ms) | |
| 200 | - | ||
| 201 | 196 | 'only' and 'runOnly' require the --test-only command-line option. | |
| 202 | 197 | custom inspect symbol fail (*ms) | |
| 203 | 198 | customized | |
@@ -231,7 +226,6 @@ | |||
| 231 | 226 | * | |
| 232 | 227 | ||
| 233 | 228 | subtest sync throw fails (*ms) | |
| 234 | - | ||
| 235 | 229 | timed out async test (*ms) | |
| 236 | 230 | 'test timed out after *ms' | |
| 237 | 231 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,6 @@ AFTER 2 | |||
| 13 | 13 | ﹣ should not run (*ms) # SKIP | |
| 14 | 14 | ✔ should run 2 (*ms) | |
| 15 | 15 | ▶ suite runs with mixture of skipped tests (*ms) | |
| 16 | - | ||
| 17 | 16 | ℹ tests 4 | |
| 18 | 17 | ℹ suites 2 | |
| 19 | 18 | ℹ pass 2 | |
| Back | FazBrowse Home | New Git URL |
0 commit comments