Skip to content

Commit 60115d7

Browse files
committed
chore(deps): upgrade cypress to v12
1 parent 9f2749f commit 60115d7

File tree

7 files changed

+38
-25
lines changed

7 files changed

+38
-25
lines changed

cypress.config.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { defineConfig } from 'cypress'
2+
3+
export default defineConfig({
4+
video: false,
5+
retries: 1,
6+
e2e: {
7+
// We've imported your old cypress plugins here.
8+
// You may want to clean this up later by importing these.
9+
setupNodeEvents: function (on, config) {
10+
return require('./cypress/plugins/index.js')(on, config)
11+
},
12+
baseUrl: 'http://localhost:3002',
13+
},
14+
})

cypress.json

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

cypress/integration/about.spec.js renamed to cypress/e2e/about.cy.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable no-undef */
21
describe('About page', () => {
32
beforeEach(() => {
43
cy.visit('/about')

cypress/integration/counter.spec.js renamed to cypress/e2e/counter.cy.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable no-undef */
21
describe('counter', () => {
32
beforeEach(() => {
43
cy.visit('/')

cypress/support/e2e.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import './commands'

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"lint": "eslint src --ext .js,.jsx,.ts,.tsx",
7575
"fix": "eslint src --ext .js,.jsx,.ts,.tsx --fix",
7676
"format": "prettier --write src/**/*.{ts,tsx}",
77-
"e2e": "cypress run --spec 'cypress/integration/*'"
77+
"e2e": "cypress run --env device=web"
7878
},
7979
"eslintConfig": {
8080
"extends": "react-app"
@@ -113,7 +113,7 @@
113113
"@testing-library/jest-dom": "^5.16.5",
114114
"codecov": "3.8.3",
115115
"commitizen": "4.2.4",
116-
"cypress": "9.4.1",
116+
"cypress": "^12.12.0",
117117
"cz-conventional-changelog": "3.3.0",
118118
"eslint-plugin-cypress": "2.12.1",
119119
"semantic-release": "18.0.1"

yarn.lock

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5427,10 +5427,10 @@ commander@^2.20.0:
54275427
resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33"
54285428
integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==
54295429

5430-
commander@^5.1.0:
5431-
version "5.1.0"
5432-
resolved "https://registry.yarnpkg.com/commander/-/commander-5.1.0.tgz#46abbd1652f8e059bddaef99bbdcb2ad9cf179ae"
5433-
integrity sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==
5430+
commander@^6.2.1:
5431+
version "6.2.1"
5432+
resolved "https://registry.yarnpkg.com/commander/-/commander-6.2.1.tgz#0792eb682dfbc325999bb2b84fddddba110ac73c"
5433+
integrity sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==
54345434

54355435
commander@^7.2.0:
54365436
version "7.2.0"
@@ -5999,10 +5999,10 @@ currently-unhandled@^0.4.1:
59995999
dependencies:
60006000
array-find-index "^1.0.1"
60016001

6002-
cypress@9.4.1:
6003-
version "9.4.1"
6004-
resolved "https://registry.yarnpkg.com/cypress/-/cypress-9.4.1.tgz#1a4ba706435829c24b7edf350c2b059e05da9084"
6005-
integrity sha512-+JgMG9uT+QFx97JU9kOHE3jO3+0UdkQ9H1oCBiC7A74qme7Jkdy2sYDBCPjjGczutnWnGUTMRlwiNMP/Uq6LrQ==
6002+
cypress@^12.12.0:
6003+
version "12.12.0"
6004+
resolved "https://registry.yarnpkg.com/cypress/-/cypress-12.12.0.tgz#0da622a34c970d8699ca6562d8e905ed7ce33c77"
6005+
integrity sha512-UU5wFQ7SMVCR/hyKok/KmzG6fpZgBHHfrXcHzDmPHWrT+UUetxFzQgt7cxCszlwfozckzwkd22dxMwl/vNkWRw==
60066006
dependencies:
60076007
"@cypress/request" "^2.88.10"
60086008
"@cypress/xvfb" "^1.2.4"
@@ -6018,12 +6018,12 @@ cypress@9.4.1:
60186018
check-more-types "^2.24.0"
60196019
cli-cursor "^3.1.0"
60206020
cli-table3 "~0.6.1"
6021-
commander "^5.1.0"
6021+
commander "^6.2.1"
60226022
common-tags "^1.8.0"
60236023
dayjs "^1.10.4"
6024-
debug "^4.3.2"
6024+
debug "^4.3.4"
60256025
enquirer "^2.3.6"
6026-
eventemitter2 "^6.4.3"
6026+
eventemitter2 "6.4.7"
60276027
execa "4.1.0"
60286028
executable "^4.1.1"
60296029
extract-zip "2.0.1"
@@ -6036,7 +6036,7 @@ cypress@9.4.1:
60366036
listr2 "^3.8.3"
60376037
lodash "^4.17.21"
60386038
log-symbols "^4.0.0"
6039-
minimist "^1.2.5"
6039+
minimist "^1.2.8"
60406040
ospath "^1.2.2"
60416041
pretty-bytes "^5.6.0"
60426042
proxy-from-env "1.0.0"
@@ -7250,10 +7250,10 @@ etag@~1.8.1:
72507250
resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887"
72517251
integrity sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=
72527252

7253-
eventemitter2@^6.4.3:
7254-
version "6.4.5"
7255-
resolved "https://registry.yarnpkg.com/eventemitter2/-/eventemitter2-6.4.5.tgz#97380f758ae24ac15df8353e0cc27f8b95644655"
7256-
integrity sha512-bXE7Dyc1i6oQElDG0jMRZJrRAn9QR2xyyFGmBdZleNmyQX0FqGYmhZIrIrpPfm/w//LTo4tVQGOGQcGCb5q9uw==
7253+
eventemitter2@6.4.7:
7254+
version "6.4.7"
7255+
resolved "https://registry.yarnpkg.com/eventemitter2/-/eventemitter2-6.4.7.tgz#a7f6c4d7abf28a14c1ef3442f21cb306a054271d"
7256+
integrity sha512-tYUSVOGeQPKt/eC1ABfhHy5Xd96N3oIijJvN3O9+TsC28T5V9yX9oEfEK5faP0EFSNVOG97qtAS68GBrQB2hDg==
72577257

72587258
eventemitter3@^4.0.0:
72597259
version "4.0.7"
@@ -10930,6 +10930,11 @@ minimist@^1.1.1, minimist@^1.2.0, minimist@^1.2.5:
1093010930
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.7.tgz#daa1c4d91f507390437c6a8bc01078e7000c4d18"
1093110931
integrity sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==
1093210932

10933+
minimist@^1.2.8:
10934+
version "1.2.8"
10935+
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c"
10936+
integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==
10937+
1093310938
minipass-collect@^1.0.2:
1093410939
version "1.0.2"
1093510940
resolved "https://registry.yarnpkg.com/minipass-collect/-/minipass-collect-1.0.2.tgz#22b813bf745dc6edba2576b940022ad6edc8c617"

0 commit comments

Comments
 (0)