We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f796c2 commit bae6197Copy full SHA for bae6197
1 file changed
index.ts
@@ -260,8 +260,14 @@ for (const testName of config.tests) {
260
if (result.output) console.log(` ${DIM}→ ${result.output}${RESET}`);
261
} else {
262
console.log(`${RED}✗ failed${RESET} ${DIM}(${result.durationMs}ms)${RESET}`);
263
- const indented = result.error!.split("\n").map((l) => ` ${l}`).join("\n");
264
- console.log(`${RED}${indented}${RESET}`);
+ const lines = result.error!.split("\n");
+ console.log(`${RED} ${lines[0]}${RESET}`);
265
+ if (lines.length > 1) {
266
+ const body = lines.slice(1).join("\n");
267
+ console.log(`${DIM}\`\`\`${RESET}`);
268
+ console.log(`${DIM}${body}${RESET}`);
269
270
+ }
271
}
272
273
0 commit comments