Skip to content

Commit d82dfd6

Browse files
committed
Updated spec patterns to account for different modes
1 parent 4277003 commit d82dfd6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cypress.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export default {
22
e2e: {
3-
specPattern: `tests/${process.env.CYPRESS_SPEC_FOLDER}/*.spec.js`
3+
specPattern: `tests/**/*.spec.js`
44
},
55
video: false,
66
viewportWidth: 1280,

cypress.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ try {
7171

7272
// Run the Cypress tests using the custom project name
7373
execSync(
74-
`percy exec -- cross-env CYPRESS_SPEC_FOLDER=${projectName} cypress run`,
74+
`percy exec -- cross-env CYPRESS_specPattern=tests/${projectName}/*.spec.js cypress run`,
7575
{
7676
stdio: "inherit"
7777
}

0 commit comments

Comments
 (0)