From a28670ef2572e881a6d03f2d3464eccda1f9ab00 Mon Sep 17 00:00:00 2001 From: Chris Thielen Date: Sun, 6 Oct 2019 16:01:28 -0700 Subject: [PATCH] fix(cypress-runner): use failing exit code if directory to serve is not found --- cypress-runner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress-runner.js b/cypress-runner.js index 5d8b19b..883a358 100755 --- a/cypress-runner.js +++ b/cypress-runner.js @@ -25,7 +25,7 @@ const error = (message) => console.log(`cypress-runner: ${message}`) function launchCypress(cypressCmd, path, desiredPort, nospa) { if (!fs.existsSync(path)) { error(`${resolve(path)} doesn't exist, can't serve files`); - process.exit(); + process.exit(-1); } let serve_process, cypress_process;