Skip to content

Commit

Permalink
Migrate Cypress from v9 to v12 (#485)
Browse files Browse the repository at this point in the history
  • Loading branch information
neilstudd authored Jun 29, 2023
1 parent 883bbc3 commit c3c66ed
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,8 @@
"node"
],
"rules": {
"node/no-unpublished-require": ["error", {
"allowModules": ["cypress"]
}]
}
}
10 changes: 10 additions & 0 deletions cypress.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
const { defineConfig } = require('cypress')

module.exports = defineConfig({
e2e: {
setupNodeEvents(on, config) {
return require('./cypress/plugins/index.js')(on, config)
},
baseUrl: 'http://localhost:3030',
},
})
3 changes: 0 additions & 3 deletions cypress.json

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"nodemon": "^2.0.15"
},
"devDependencies": {
"cypress": "^9.5.1",
"cypress": "^12.14.0",
"eslint": "^8.10.0",
"eslint-plugin-cypress": "^2.8.1",
"eslint-plugin-jest": "^22.21.0",
Expand Down

0 comments on commit c3c66ed

Please sign in to comment.