diff --git a/integration-tests/gatsby-cli/test-helpers/invoke-cli.js b/integration-tests/gatsby-cli/test-helpers/invoke-cli.js index e23411307f7a6..82f4290c3e786 100644 --- a/integration-tests/gatsby-cli/test-helpers/invoke-cli.js +++ b/integration-tests/gatsby-cli/test-helpers/invoke-cli.js @@ -36,6 +36,7 @@ export const GatsbyCLI = { ? `development` : `production` try { + console.log(`starting`, args) const results = sync( process.execPath, [gatsbyBinLocation].concat(args), @@ -44,11 +45,13 @@ export const GatsbyCLI = { env: { NODE_ENV, CI: 1, GATSBY_LOGGER: `ink` }, } ) + console.log(`finished`, args, results) return [ results.exitCode, createLogsMatcher(strip(results.stdout.toString())), ] } catch (err) { + console.log(`error`, err) return [ err.exitCode, createLogsMatcher(strip(err.stdout?.toString() || ``)),