Skip to content
Snippets Groups Projects
Unverified Commit 5dae52c0 authored by Nemanja Glumac's avatar Nemanja Glumac Committed by GitHub
Browse files

Cypress run: guard against unspecified specs (#15969) (#16019)


Co-authored-by: default avatarAriya Hidayat <ariya@metabase.com>
parent 4f749d8b
No related branches found
No related tags found
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.
Finish editing this message first!
Please register or to comment