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}` );