diff --git a/test/integration/production/test/index.test.js b/test/integration/production/test/index.test.js index 5276dbf5db56..39206606c790 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,7 +57,9 @@ describe('Production Usage', () => { console.log(output) if (result.code !== 0) { - throw new Error(`Failed to build, exited with code ${result.code}`) + throw new Error( + output + ) } }) afterAll(async () => {