Skip to content

Commit a81f7ad

Browse files
committed
feat(e2e-cypress): upgrade cypress to 3.0
close #1477 BREAKING CHANGE: Cypress has been upgraded to 3.0. See changelog at https://docs.cypress.io/guides/references/changelog.html
1 parent 2cbe373 commit a81f7ad

File tree

4 files changed

+42
-37
lines changed

4 files changed

+42
-37
lines changed

packages/@vue/cli-plugin-e2e-cypress/__tests__/cypressPlugin.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ test('should work', async () => {
1111
})
1212

1313
const config = JSON.parse(await project.read('cypress.json'))
14-
config.videoRecording = false
14+
config.video = false
1515
await project.write('cypress.json', JSON.stringify(config))
1616

1717
await project.run(`vue-cli-service test:e2e --headless`)

packages/@vue/cli-plugin-e2e-cypress/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
},
2424
"dependencies": {
2525
"@vue/cli-shared-utils": "^3.0.0-beta.15",
26-
"cypress": "^2.1.0",
26+
"cypress": "^3.0.0",
2727
"eslint-plugin-cypress": "^2.0.1"
2828
}
2929
}

packages/@vue/cli-plugin-typescript/__tests__/tsPluginE2e.spec.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ test('cypress', async () => {
1010
'@vue/cli-plugin-e2e-cypress': {}
1111
}
1212
})
13+
const config = JSON.parse(await project.read('cypress.json'))
14+
config.video = false
15+
await project.write('cypress.json', JSON.stringify(config))
1316
await project.run(`vue-cli-service test:e2e --headless`)
1417
})
1518

yarn.lock

Lines changed: 37 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -889,10 +889,11 @@
889889
date-fns "^1.27.2"
890890
figures "^1.7.0"
891891

892-
"@cypress/xvfb@1.1.3":
893-
version "1.1.3"
894-
resolved "https://registry.yarnpkg.com/@cypress/xvfb/-/xvfb-1.1.3.tgz#6294a7d1feb751f12302248f2089fc534c4acb7f"
892+
"@cypress/xvfb@1.2.3":
893+
version "1.2.3"
894+
resolved "https://registry.yarnpkg.com/@cypress/xvfb/-/xvfb-1.2.3.tgz#6319afdcdcff7d1505daeeaa84484d0596189860"
895895
dependencies:
896+
debug "^3.1.0"
896897
lodash.once "^4.1.1"
897898

898899
"@mrmlnc/readdir-enhanced@^2.2.1":
@@ -1470,7 +1471,7 @@ ansi-styles@^2.2.1:
14701471
version "2.2.1"
14711472
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe"
14721473

1473-
ansi-styles@^3.1.0, ansi-styles@^3.2.0, ansi-styles@^3.2.1:
1474+
ansi-styles@^3.2.0, ansi-styles@^3.2.1:
14741475
version "3.2.1"
14751476
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d"
14761477
dependencies:
@@ -2461,6 +2462,12 @@ cache-loader@^1.2.2:
24612462
neo-async "^2.5.0"
24622463
schema-utils "^0.4.2"
24632464

2465+
cachedir@1.2.0:
2466+
version "1.2.0"
2467+
resolved "https://registry.yarnpkg.com/cachedir/-/cachedir-1.2.0.tgz#e9a0a25bb21a2b7a0f766f07c41eb7a311919b97"
2468+
dependencies:
2469+
os-homedir "^1.0.1"
2470+
24642471
call-me-maybe@^1.0.1:
24652472
version "1.0.1"
24662473
resolved "https://registry.yarnpkg.com/call-me-maybe/-/call-me-maybe-1.0.1.tgz#26d208ea89e37b5cbde60250a15f031c16a4d66b"
@@ -2582,13 +2589,13 @@ chai@^4.1.2:
25822589
pathval "^1.0.0"
25832590
type-detect "^4.0.0"
25842591

2585-
chalk@2.1.0:
2586-
version "2.1.0"
2587-
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.1.0.tgz#ac5becf14fa21b99c6c92ca7a7d7cfd5b17e743e"
2592+
chalk@2.4.1, chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.3.0, chalk@^2.3.1, chalk@^2.4.1:
2593+
version "2.4.1"
2594+
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.1.tgz#18c49ab16a037b6eb0152cc83e3471338215b66e"
25882595
dependencies:
2589-
ansi-styles "^3.1.0"
2596+
ansi-styles "^3.2.1"
25902597
escape-string-regexp "^1.0.5"
2591-
supports-color "^4.0.0"
2598+
supports-color "^5.3.0"
25922599

25932600
chalk@^1.0.0, chalk@^1.1.1, chalk@^1.1.3:
25942601
version "1.1.3"
@@ -2600,14 +2607,6 @@ chalk@^1.0.0, chalk@^1.1.1, chalk@^1.1.3:
26002607
strip-ansi "^3.0.0"
26012608
supports-color "^2.0.0"
26022609

2603-
chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.3.0, chalk@^2.3.1, chalk@^2.4.1:
2604-
version "2.4.1"
2605-
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.1.tgz#18c49ab16a037b6eb0152cc83e3471338215b66e"
2606-
dependencies:
2607-
ansi-styles "^3.2.1"
2608-
escape-string-regexp "^1.0.5"
2609-
supports-color "^5.3.0"
2610-
26112610
chardet@^0.4.0:
26122611
version "0.4.2"
26132612
resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.4.2.tgz#b5473b33dc97c424e5d98dc87d55d4d8a29c8bf2"
@@ -3527,12 +3526,12 @@ cyclist@~0.2.2:
35273526
version "0.2.2"
35283527
resolved "https://registry.yarnpkg.com/cyclist/-/cyclist-0.2.2.tgz#1b33792e11e914a2fd6d6ed6447464444e5fa640"
35293528

3530-
cypress@^2.1.0:
3531-
version "2.1.0"
3532-
resolved "https://registry.yarnpkg.com/cypress/-/cypress-2.1.0.tgz#a8bd7d9b89c38a1e380db83b57d9bba0dbb95ba4"
3529+
cypress@^3.0.0:
3530+
version "3.0.1"
3531+
resolved "https://registry.yarnpkg.com/cypress/-/cypress-3.0.1.tgz#6a8938ce8a551e4ae1bd5fb2ceab038d4ad39c4d"
35333532
dependencies:
35343533
"@cypress/listr-verbose-renderer" "0.4.1"
3535-
"@cypress/xvfb" "1.1.3"
3534+
"@cypress/xvfb" "1.2.3"
35363535
"@types/blob-util" "1.3.3"
35373536
"@types/bluebird" "3.5.18"
35383537
"@types/chai" "4.0.8"
@@ -3544,11 +3543,13 @@ cypress@^2.1.0:
35443543
"@types/sinon" "4.0.0"
35453544
"@types/sinon-chai" "2.7.29"
35463545
bluebird "3.5.0"
3547-
chalk "2.1.0"
3546+
cachedir "1.2.0"
3547+
chalk "2.4.1"
35483548
check-more-types "2.24.0"
35493549
commander "2.11.0"
35503550
common-tags "1.4.0"
35513551
debug "3.1.0"
3552+
executable "4.1.1"
35523553
extract-zip "1.6.6"
35533554
fs-extra "4.0.1"
35543555
getos "2.8.4"
@@ -3558,6 +3559,7 @@ cypress@^2.1.0:
35583559
lazy-ass "1.6.0"
35593560
listr "0.12.0"
35603561
lodash "4.17.4"
3562+
log-symbols "2.2.0"
35613563
minimist "1.2.0"
35623564
progress "1.1.8"
35633565
ramda "0.24.1"
@@ -4550,6 +4552,12 @@ execa@^0.8.0:
45504552
signal-exit "^3.0.0"
45514553
strip-eof "^1.0.0"
45524554

4555+
executable@4.1.1:
4556+
version "4.1.1"
4557+
resolved "https://registry.yarnpkg.com/executable/-/executable-4.1.1.tgz#41532bff361d3e57af4d763b70582db18f5d133c"
4558+
dependencies:
4559+
pify "^2.2.0"
4560+
45534561
exit-hook@^1.0.0:
45544562
version "1.1.1"
45554563
resolved "https://registry.yarnpkg.com/exit-hook/-/exit-hook-1.1.1.tgz#f05ca233b48c05d54fff07765df8507e95c02ff8"
@@ -7689,18 +7697,18 @@ lodash@4.17.4:
76897697
version "4.17.4"
76907698
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae"
76917699

7700+
log-symbols@2.2.0, log-symbols@^2.0.0, log-symbols@^2.1.0, log-symbols@^2.2.0:
7701+
version "2.2.0"
7702+
resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-2.2.0.tgz#5740e1c5d6f0dfda4ad9323b5332107ef6b4c40a"
7703+
dependencies:
7704+
chalk "^2.0.1"
7705+
76927706
log-symbols@^1.0.2:
76937707
version "1.0.2"
76947708
resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-1.0.2.tgz#376ff7b58ea3086a0f09facc74617eca501e1a18"
76957709
dependencies:
76967710
chalk "^1.0.0"
76977711

7698-
log-symbols@^2.0.0, log-symbols@^2.1.0, log-symbols@^2.2.0:
7699-
version "2.2.0"
7700-
resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-2.2.0.tgz#5740e1c5d6f0dfda4ad9323b5332107ef6b4c40a"
7701-
dependencies:
7702-
chalk "^2.0.1"
7703-
77047712
log-update@^1.0.2:
77057713
version "1.0.2"
77067714
resolved "https://registry.yarnpkg.com/log-update/-/log-update-1.0.2.tgz#19929f64c4093d2d2e7075a1dad8af59c296b8d1"
@@ -8959,7 +8967,7 @@ performance-now@^2.1.0:
89598967
version "2.1.0"
89608968
resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b"
89618969

8962-
pify@^2.0.0, pify@^2.3.0:
8970+
pify@^2.0.0, pify@^2.2.0, pify@^2.3.0:
89638971
version "2.3.0"
89648972
resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c"
89658973

@@ -10821,12 +10829,6 @@ supports-color@^3.1.2, supports-color@^3.2.3:
1082110829
dependencies:
1082210830
has-flag "^1.0.0"
1082310831

10824-
supports-color@^4.0.0:
10825-
version "4.5.0"
10826-
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-4.5.0.tgz#be7a0de484dec5c5cddf8b3d59125044912f635b"
10827-
dependencies:
10828-
has-flag "^2.0.0"
10829-
1083010832
svgo@^0.7.0:
1083110833
version "0.7.2"
1083210834
resolved "https://registry.yarnpkg.com/svgo/-/svgo-0.7.2.tgz#9f5772413952135c6fefbf40afe6a4faa88b4bb5"

0 commit comments

Comments
 (0)