Skip to content

Commit

Permalink
try/catch on cypress install command
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnC-80 committed Nov 22, 2024
1 parent b69c404 commit cffac1f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/test/cypress-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,13 @@ class CypressService {
}

async installAndRun(...args) {
await exec('npx cypress install');
this.runCypressTests(args);
console.log('Attempting cypress install...');
try {
await exec('npx cypress install');
this.runCypressTests(args);
} catch (e) {
console.log(e);
}
}
}

Expand Down

0 comments on commit cffac1f

Please sign in to comment.