Skip to content
Snippets Groups Projects
Unverified Commit 24b84de2 authored by Ariya Hidayat's avatar Ariya Hidayat Committed by GitHub
Browse files

Cypress run: guard against unspecified specs (#15969)

parent b9f5c2bd
Branches
Tags
No related merge requests found
......@@ -17,7 +17,7 @@ const isFolderFlag = userArgs.includes("--folder");
const isSpecFlag = userArgs.includes("--spec");
const sourceFolderLocation = userArgs[userArgs.indexOf("--folder") + 1];
const specs = userArgs[userArgs.indexOf("--spec") + 1];
const isSingleSpec = !specs.match(/,/);
const isSingleSpec = !specs || !specs.match(/,/);
const testFiles = isSingleSpec ? specs : specs.split(",");
function readFile(fileName) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment