Skip to content

Commit 34a0422

Browse files
chore: improve test debug observability
1 parent 13086e1 commit 34a0422

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/prettier-plugin-java/test/test-utils.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ export function testRepositorySample(
117117
maxBuffer: Infinity
118118
});
119119
if (code.status !== 0) {
120+
console.log("error", code.error);
121+
console.log("stderr", code.stderr);
122+
(code.output ?? []).forEach(out => console.log("output", out));
123+
120124
expect.fail(
121125
`Cannot build ${testFolder}, please check the output below:\n${code.error ?? code.stderr}`
122126
);

0 commit comments

Comments
 (0)