Skip to content

Commit

Permalink
chore(deps-dev): bump cypress from 9.5.1 to 10.3.0 (#3220)
Browse files Browse the repository at this point in the history
Closes #3199
  • Loading branch information
char0n authored Jul 6, 2022
1 parent 6eccbb1 commit dba70e5
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 21 deletions.
17 changes: 17 additions & 0 deletions cypress.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
"use strict"

const { defineConfig } = require("cypress")
const setupNodeEvents = require("./test/e2e/plugins/index.js")

module.exports = defineConfig({
fileServerFolder: "test/e2e/static",
fixturesFolder: "test/e2e/fixtures",
screenshotsFolder: "test/e2e/screenshots",
videosFolder: "test/e2e/videos",
e2e: {
baseUrl: "http://localhost:3001/",
supportFile: "test/e2e/support/e2e.js",
specPattern: "test/e2e/tests/**/*.js",
setupNodeEvents,
},
})
9 changes: 0 additions & 9 deletions cypress.json

This file was deleted.

18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"lint": "eslint --cache --ext '.js,.jsx' src test",
"lint-errors": "eslint --cache --quiet --ext '.js,.jsx' src test",
"lint-fix": "eslint --cache --ext '.js,.jsx' src test --fix",
"cy:start": "webpack serve --port 3260 --host 0.0.0.0 --config webpack/dev.babel.js --inline --hot --progress --content-base test/e2e/static",
"cy:start": "webpack serve --port 3260 --host 0.0.0.0 --config webpack/dev.babel.js --hot --progress --static test/e2e/static",
"cy:open": "cypress open",
"cy:run:chrome": "cypress run --browser chrome",
"cy:run:firefox": "cypress run --browser firefox",
Expand Down Expand Up @@ -118,7 +118,7 @@
"cross-env": "^7.0.3",
"css-loader": "^6.7.1",
"cssnano": "^5.0.6",
"cypress": "^9.5.1",
"cypress": "=10.3.0",
"cypress-file-upload": "^5.0.8",
"dedent": "^0.7.0",
"deep-extend": "^0.6.0",
Expand Down
4 changes: 3 additions & 1 deletion test/e2e/plugins/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
// This function is called when a project is opened or re-opened (e.g. due to
// the project's config changing)

module.exports = (on, config) => {
const setupNodeEvents = (on, config) => {
// `on` is used to hook into various events Cypress emits
// `config` is the resolved Cypress config
}

module.exports = setupNodeEvents
File renamed without changes.

0 comments on commit dba70e5

Please sign in to comment.