From aafbcf51f2c37eb3bc98e620e25f6452a2ddb0b8 Mon Sep 17 00:00:00 2001 From: OJ Kwon Date: Mon, 21 Mar 2022 14:03:51 -0700 Subject: [PATCH] test(integration): emit console error when test fails --- test/integration/production/test/index.test.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/integration/production/test/index.test.js b/test/integration/production/test/index.test.js index 5276dbf5db568..3a822cbb3b90b 100644 --- a/test/integration/production/test/index.test.js +++ b/test/integration/production/test/index.test.js @@ -26,6 +26,7 @@ import dynamicImportTests from './dynamic' import processEnv from './process-env' import security from './security' import { promisify } from 'util' +import { error } from 'console' const glob = promisify(globOriginal) @@ -56,6 +57,7 @@ describe('Production Usage', () => { console.log(output) if (result.code !== 0) { + error(output) throw new Error(`Failed to build, exited with code ${result.code}`) } })