Skip to content

Commit 99c5b0a

Browse files
committed
tests
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 54f7dee commit 99c5b0a

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

tests/integration/synthetics/cli.run.test.js

+12-4
Original file line numberDiff line numberDiff line change
@@ -367,14 +367,22 @@ describe('cli.run()', () => {
367367
test('dogfooding', () => {
368368
const res = spawnSync(
369369
process.execPath,
370-
[binWrapper, '--output-format', format],
370+
[binWrapper, '--output-format', format, '--ignore-npm-errors'],
371371
{
372372
cwd: projectRootPath,
373-
stdio: ['ignore', 'ignore', 'inherit']
373+
stdio: ['ignore', 'ignore', 'pipe'],
374+
encoding: 'utf8'
374375
}
375376
)
376-
expect(res.error).toBeUndefined()
377-
expect(res.status).toBe(0)
377+
try {
378+
expect(res.error).toBeUndefined()
379+
expect(res.status).toBe(0)
380+
} catch (err) {
381+
process.stderr.write('\n')
382+
process.stderr.write(res.stderr)
383+
process.stderr.write('\n')
384+
throw err
385+
}
378386
}, cliRunTestTimeout)
379387
})
380388

0 commit comments

Comments
 (0)