Skip to content

Commit

Permalink
test(integration): emit console error when test fails
Browse files Browse the repository at this point in the history
  • Loading branch information
kwonoj committed Mar 21, 2022
1 parent cd47984 commit aafbcf5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/integration/production/test/index.test.js
Expand Up @@ -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)

Expand Down Expand Up @@ -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}`)
}
})
Expand Down

0 comments on commit aafbcf5

Please sign in to comment.