Skip to content

Commit cb3c6e8

Browse files
committed
if debug is on, inherit stdio when installing Cypress binary
1 parent 4a5aebb commit cb3c6e8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

index.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ async function runCypressTests (baseUrl, record, spec) {
3030

3131
async function preBuild() {
3232
debug('installing Cypress binary just in case')
33-
await execa('npx', ['cypress', 'install'])
33+
if (debug.enabled) {
34+
await execa('npx', ['cypress', 'install'], {stdio: 'inherit'})
35+
} else {
36+
await execa('npx', ['cypress', 'install'])
37+
}
3438
}
3539

3640
async function postBuild({ fullPublishFolder, record, spec, failBuild }) {

0 commit comments

Comments
 (0)