Skip to content

Commit e3cf550

Browse files
authored
fix: restore set-port.js to work in Cypress 10+ environment (#620)
1 parent 828f942 commit e3cf550

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/set-port.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const { readFileSync, writeFileSync } = require('fs')
88
// in all our example specs and then run the tests
99

1010
// if doing it locally, you can change back to the original port
11-
// with "git checkout cypress/integration/examples" command
11+
// with "git restore ." command
1212

1313
if (!process.env.PORT) {
1414
console.log('PORT environment variable is not set, nothing to do')
@@ -30,7 +30,7 @@ console.log('replacing "%s" with "%s" in all spec files', input, newUrl)
3030
const getSpecFilenames = () => {
3131
const globby = require('globby')
3232

33-
return globby(['cypress/integration/**/*.spec.js'])
33+
return globby(['cypress/e2e/**/*.cy.js'])
3434
}
3535

3636
const replacePort = (filename) => {
@@ -48,4 +48,3 @@ getSpecFilenames()
4848
console.error(e.message)
4949
process.exit(1)
5050
})
51-

0 commit comments

Comments
 (0)