Skip to content

Commit dba70e5

Browse files
authored
chore(deps-dev): bump cypress from 9.5.1 to 10.3.0 (#3220)
Closes #3199
1 parent 6eccbb1 commit dba70e5

File tree

6 files changed

+31
-21
lines changed

6 files changed

+31
-21
lines changed

cypress.config.js

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
"use strict"
2+
3+
const { defineConfig } = require("cypress")
4+
const setupNodeEvents = require("./test/e2e/plugins/index.js")
5+
6+
module.exports = defineConfig({
7+
fileServerFolder: "test/e2e/static",
8+
fixturesFolder: "test/e2e/fixtures",
9+
screenshotsFolder: "test/e2e/screenshots",
10+
videosFolder: "test/e2e/videos",
11+
e2e: {
12+
baseUrl: "http://localhost:3001/",
13+
supportFile: "test/e2e/support/e2e.js",
14+
specPattern: "test/e2e/tests/**/*.js",
15+
setupNodeEvents,
16+
},
17+
})

cypress.json

-9
This file was deleted.

package-lock.json

+9-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"lint": "eslint --cache --ext '.js,.jsx' src test",
3737
"lint-errors": "eslint --cache --quiet --ext '.js,.jsx' src test",
3838
"lint-fix": "eslint --cache --ext '.js,.jsx' src test --fix",
39-
"cy:start": "webpack serve --port 3260 --host 0.0.0.0 --config webpack/dev.babel.js --inline --hot --progress --content-base test/e2e/static",
39+
"cy:start": "webpack serve --port 3260 --host 0.0.0.0 --config webpack/dev.babel.js --hot --progress --static test/e2e/static",
4040
"cy:open": "cypress open",
4141
"cy:run:chrome": "cypress run --browser chrome",
4242
"cy:run:firefox": "cypress run --browser firefox",
@@ -118,7 +118,7 @@
118118
"cross-env": "^7.0.3",
119119
"css-loader": "^6.7.1",
120120
"cssnano": "^5.0.6",
121-
"cypress": "^9.5.1",
121+
"cypress": "=10.3.0",
122122
"cypress-file-upload": "^5.0.8",
123123
"dedent": "^0.7.0",
124124
"deep-extend": "^0.6.0",

test/e2e/plugins/index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
// This function is called when a project is opened or re-opened (e.g. due to
1212
// the project's config changing)
1313

14-
module.exports = (on, config) => {
14+
const setupNodeEvents = (on, config) => {
1515
// `on` is used to hook into various events Cypress emits
1616
// `config` is the resolved Cypress config
1717
}
18+
19+
module.exports = setupNodeEvents
File renamed without changes.

0 commit comments

Comments
 (0)