Skip to content

Commit c912db4

Browse files
vladonemolgandecki
authored andcommitted
feat(tags): make the TAGS env. variable optional
Fixes #301
1 parent 69f8f3c commit c912db4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cypress-tags.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const featuresToRun = [];
3131

3232
const found = process.argv.slice(2).find(arg => arg.indexOf("TAGS=") === 0);
3333

34-
const envTags = found.replace(/.*=/, "");
34+
const envTags = found ? found.replace(/.*=/, "") : "";
3535
debug("Found tag expression", envTags);
3636

3737
paths.forEach(featurePath => {
@@ -63,7 +63,7 @@ try {
6363
if (featuresToRun.length || envTags === "") {
6464
execFileSync(
6565
process.platform === "win32"
66-
? `${__dirname}/../.bin/cypress.cmd`
66+
? `cypress.cmd`
6767
: `${__dirname}/../.bin/cypress`,
6868
[...process.argv.slice(2), "--spec", featuresToRun.join(",")],
6969
{

0 commit comments

Comments
 (0)