Skip to content

Commit 68c8922

Browse files
committed
Upgrade Cypress to v10
1 parent d415e9e commit 68c8922

File tree

5 files changed

+337
-622
lines changed

5 files changed

+337
-622
lines changed

cypress.config.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
const { defineConfig } = require('cypress')
2+
3+
module.exports = defineConfig({
4+
e2e: {
5+
baseUrl: 'http://localhost:3000',
6+
specPattern: 'e2e/integration/*.test.js',
7+
supportFile: 'e2e/support/index.js'
8+
},
9+
fixturesFolder: 'e2e/fixtures',
10+
screenshotsFolder: 'e2e/screenshots',
11+
videosFolder: 'e2e/videos',
12+
video: false
13+
})

cypress.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

e2e/plugins/index.js

Lines changed: 0 additions & 25 deletions
This file was deleted.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"scripts": {
2020
"build": "react-scripts build",
2121
"e2e": "concurrently -k -s first -n \"app,mock,e2e\" \"BROWSER=none yarn start\" \"yarn e2e:mock\" \"yarn e2e:run\"",
22-
"e2e:dev": "concurrently -k -n \"app,mock,e2e\" \"yarn start\" \"yarn e2e:mock\" \"cypress open\"",
22+
"e2e:dev": "concurrently -k -n \"app,mock,e2e\" \"yarn start\" \"yarn e2e:mock\" \"cypress open --e2e\"",
2323
"e2e:mock": "node ./e2e/fixtures/server.js",
2424
"e2e:prod": "concurrently -k -s first -n \"app,mock,e2e\" \"yarn serve\" \"yarn e2e:mock\" \"yarn e2e:run\"",
2525
"e2e:run": "wait-on -l http-get://localhost:3000 && cypress run",
@@ -61,10 +61,10 @@
6161
]
6262
},
6363
"devDependencies": {
64-
"@testing-library/cypress": "^7.0.7",
64+
"@testing-library/cypress": "^8.0.3",
6565
"concurrently": "^7.4.0",
6666
"cors": "^2.8.5",
67-
"cypress": "^3.4.1",
67+
"cypress": "^10.9.0",
6868
"eslint-config-prettier": "^8.5.0",
6969
"eslint-plugin-cypress": "^2.12.1",
7070
"eslint-plugin-prettier": "^4.2.1",

0 commit comments

Comments
 (0)