From 34a0422097d682fb4777c71fcd61c4b16baa4b25 Mon Sep 17 00:00:00 2001 From: Clement Dessoude Date: Wed, 8 Jan 2025 23:25:24 +0100 Subject: [PATCH] chore: improve test debug observability --- packages/prettier-plugin-java/test/test-utils.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/prettier-plugin-java/test/test-utils.ts b/packages/prettier-plugin-java/test/test-utils.ts index 1fafc456..46938be6 100644 --- a/packages/prettier-plugin-java/test/test-utils.ts +++ b/packages/prettier-plugin-java/test/test-utils.ts @@ -117,6 +117,10 @@ export function testRepositorySample( maxBuffer: Infinity }); if (code.status !== 0) { + console.log("error", code.error); + console.log("stderr", code.stderr); + (code.output ?? []).forEach(out => console.log("output", out)); + expect.fail( `Cannot build ${testFolder}, please check the output below:\n${code.error ?? code.stderr}` );