diff --git a/test/integration/production/test/index.test.js b/test/integration/production/test/index.test.js index 5276dbf5db56..3a822cbb3b90 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}`) } })