Skip to content

Commit 0e16f87

Browse files
committed
chore: log command output in failing test if exit code is not as expected
1 parent 55d6108 commit 0e16f87

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/cli/e2e/__tests__/pw-test.spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ describe('pw-test', { timeout: 45000 }, () => {
2121
directory: path.join(__dirname, 'fixtures', 'test-pwt-native'),
2222
timeout: 120000, // 2 minutes
2323
})
24+
if (result.status !== 0) {
25+
// eslint-disable-next-line no-console
26+
console.log(result)
27+
}
2428
expect(result.status).toBe(0)
2529
}, 130000)
2630

0 commit comments

Comments
 (0)