Skip to content

Commit e4e942e

Browse files
authored
Merge pull request #9688 from jrafanie/expose-cypress-spec-option-from-yarn-and-rake
Expose cypress's --spec pattern option from yarn and therefore rake
2 parents 0ee52c8 + a6a45ed commit e4e942e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
],
1313
"scripts": {
1414
"cypress:open": "cypress open",
15-
"cypress:run:chrome": "cypress run --headless --browser chrome",
16-
"cypress:run:edge": "cypress run --headless --browser edge",
17-
"cypress:run:firefox": "cypress run --headless --browser firefox",
15+
"cypress:run:chrome": "cypress run --headless --browser chrome ${SPEC:+--spec \"$SPEC\"}",
16+
"cypress:run:edge": "cypress run --headless --browser edge ${SPEC:+--spec \"$SPEC\"}",
17+
"cypress:run:firefox": "cypress run --headless --browser firefox ${SPEC:+--spec \"$SPEC\"}",
1818
"test": "jest",
1919
"test:watch": "jest --watchAll",
2020
"test:current": "jest --watch",

0 commit comments

Comments
 (0)