Skip to content

Commit cc0d240

Browse files
Merge pull request #10 from cypress-io/master
upgrade to Cypress v3
2 parents 8953d57 + e781eaf commit cc0d240

5 files changed

Lines changed: 78 additions & 39 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,4 @@ typings/
6565
.vscode/
6666
dist/
6767
cypress/screenshots
68+
cypress/videos

circle.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# https://docs.cypress.io/guides/guides/continuous-integration.html#CircleCI
2+
version: 2
3+
jobs:
4+
build:
5+
docker:
6+
- image: cypress/base:10
7+
environment:
8+
## this enables colors in the output
9+
TERM: xterm
10+
working_directory: ~/app
11+
steps:
12+
- checkout
13+
- restore_cache:
14+
key: v1-app
15+
- run: yarn install
16+
- save_cache:
17+
key: v1-app
18+
paths:
19+
# since we use Yarn it caches NPM modules in ~/.cache
20+
# and Cypress caches its binary there!
21+
# to confirm:
22+
# yarn cache dir
23+
# npx print-cachedir Cypress
24+
- ~/.cache
25+
- run: yarn build
26+
# run e2e tests with video recorded by Cypress
27+
- run: yarn e2e:video
28+
# store videos and screenshots (if any) as CI artifacts
29+
- store_artifacts:
30+
path: cypress/videos
31+
- store_artifacts:
32+
path: cypress/screenshots

cypress.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
{}
1+
{
2+
"video": false
3+
}

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@
1919
"examples": "run-p examples:*",
2020
"examples:client": "cd examples && poi --port 4321",
2121
"examples:server": "cd cypress/fixtures && json-server --port 4322 db.js",
22-
"cypress:run": "cypress run --config videoRecording=false",
22+
"cypress:run": "cypress run",
23+
"cypress:run:video": "cypress run --config video=true",
2324
"cypress:open": "cypress open",
2425
"e2e": "concurrently -k --success first 'npm run examples' 'npm run cypress:run'",
26+
"e2e:video": "concurrently -k --success first 'npm run examples' 'npm run cypress:run:video'",
2527
"e2e:open": "run-p examples cypress:open",
2628
"docs": "poi --config docs/poi.config.js",
27-
"prepublish": "run-p e2e"
29+
"disable-prepublish-stop-running-on-install-before-build": "run-p e2e"
2830
},
2931
"keywords": [
3032
"react",
@@ -43,7 +45,7 @@
4345
"@types/react": "^16.3.2",
4446
"babel-preset-stage-0": "^6.24.1",
4547
"concurrently": "^3.5.1",
46-
"cypress": "^2.1.0",
48+
"cypress": "3.0.1",
4749
"jest": "^22.4.3",
4850
"json-server": "^0.12.2",
4951
"npm-run-all": "^4.1.2",
@@ -81,4 +83,4 @@
8183
"^.+\\.tsx?$": "ts-jest"
8284
}
8385
}
84-
}
86+
}

yarn.lock

Lines changed: 36 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -822,10 +822,11 @@
822822
lodash.clonedeep "4.5.0"
823823
webpack "^4.0.0"
824824

825-
"@cypress/xvfb@1.1.3":
826-
version "1.1.3"
827-
resolved "https://registry.yarnpkg.com/@cypress/xvfb/-/xvfb-1.1.3.tgz#6294a7d1feb751f12302248f2089fc534c4acb7f"
825+
"@cypress/xvfb@1.2.3":
826+
version "1.2.3"
827+
resolved "https://registry.yarnpkg.com/@cypress/xvfb/-/xvfb-1.2.3.tgz#6319afdcdcff7d1505daeeaa84484d0596189860"
828828
dependencies:
829+
debug "^3.1.0"
829830
lodash.once "^4.1.1"
830831

831832
"@mdx-js/loader@^0.8.1":
@@ -1219,7 +1220,7 @@ ansi-styles@^2.2.1:
12191220
version "2.2.1"
12201221
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe"
12211222

1222-
ansi-styles@^3.1.0, ansi-styles@^3.2.0, ansi-styles@^3.2.1:
1223+
ansi-styles@^3.2.0, ansi-styles@^3.2.1:
12231224
version "3.2.1"
12241225
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d"
12251226
dependencies:
@@ -2577,6 +2578,12 @@ cache-base@^1.0.1:
25772578
union-value "^1.0.0"
25782579
unset-value "^1.0.0"
25792580

2581+
cachedir@1.2.0:
2582+
version "1.2.0"
2583+
resolved "https://registry.yarnpkg.com/cachedir/-/cachedir-1.2.0.tgz#e9a0a25bb21a2b7a0f766f07c41eb7a311919b97"
2584+
dependencies:
2585+
os-homedir "^1.0.1"
2586+
25802587
callsites@^2.0.0:
25812588
version "2.0.0"
25822589
resolved "https://registry.yarnpkg.com/callsites/-/callsites-2.0.0.tgz#06eb84f00eea413da86affefacbffb36093b3c50"
@@ -2655,13 +2662,13 @@ chalk@0.5.1:
26552662
strip-ansi "^0.3.0"
26562663
supports-color "^0.2.0"
26572664

2658-
chalk@2.1.0:
2659-
version "2.1.0"
2660-
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.1.0.tgz#ac5becf14fa21b99c6c92ca7a7d7cfd5b17e743e"
2665+
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.3.2, chalk@^2.4.1:
2666+
version "2.4.1"
2667+
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.1.tgz#18c49ab16a037b6eb0152cc83e3471338215b66e"
26612668
dependencies:
2662-
ansi-styles "^3.1.0"
2669+
ansi-styles "^3.2.1"
26632670
escape-string-regexp "^1.0.5"
2664-
supports-color "^4.0.0"
2671+
supports-color "^5.3.0"
26652672

26662673
chalk@^1.0.0, chalk@^1.1.1, chalk@^1.1.3:
26672674
version "1.1.3"
@@ -2673,14 +2680,6 @@ chalk@^1.0.0, chalk@^1.1.1, chalk@^1.1.3:
26732680
strip-ansi "^3.0.0"
26742681
supports-color "^2.0.0"
26752682

2676-
chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.3.0, chalk@^2.3.1, chalk@^2.3.2, chalk@^2.4.1:
2677-
version "2.4.1"
2678-
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.1.tgz#18c49ab16a037b6eb0152cc83e3471338215b66e"
2679-
dependencies:
2680-
ansi-styles "^3.2.1"
2681-
escape-string-regexp "^1.0.5"
2682-
supports-color "^5.3.0"
2683-
26842683
character-entities-legacy@^1.0.0:
26852684
version "1.1.2"
26862685
resolved "https://registry.yarnpkg.com/character-entities-legacy/-/character-entities-legacy-1.1.2.tgz#7c6defb81648498222c9855309953d05f4d63a9c"
@@ -3329,12 +3328,12 @@ cyclist@~0.2.2:
33293328
version "0.2.2"
33303329
resolved "https://registry.yarnpkg.com/cyclist/-/cyclist-0.2.2.tgz#1b33792e11e914a2fd6d6ed6447464444e5fa640"
33313330

3332-
cypress@^2.1.0:
3333-
version "2.1.0"
3334-
resolved "https://registry.yarnpkg.com/cypress/-/cypress-2.1.0.tgz#a8bd7d9b89c38a1e380db83b57d9bba0dbb95ba4"
3331+
cypress@3.0.1:
3332+
version "3.0.1"
3333+
resolved "https://registry.yarnpkg.com/cypress/-/cypress-3.0.1.tgz#6a8938ce8a551e4ae1bd5fb2ceab038d4ad39c4d"
33353334
dependencies:
33363335
"@cypress/listr-verbose-renderer" "0.4.1"
3337-
"@cypress/xvfb" "1.1.3"
3336+
"@cypress/xvfb" "1.2.3"
33383337
"@types/blob-util" "1.3.3"
33393338
"@types/bluebird" "3.5.18"
33403339
"@types/chai" "4.0.8"
@@ -3346,11 +3345,13 @@ cypress@^2.1.0:
33463345
"@types/sinon" "4.0.0"
33473346
"@types/sinon-chai" "2.7.29"
33483347
bluebird "3.5.0"
3349-
chalk "2.1.0"
3348+
cachedir "1.2.0"
3349+
chalk "2.4.1"
33503350
check-more-types "2.24.0"
33513351
commander "2.11.0"
33523352
common-tags "1.4.0"
33533353
debug "3.1.0"
3354+
executable "4.1.1"
33543355
extract-zip "1.6.6"
33553356
fs-extra "4.0.1"
33563357
getos "2.8.4"
@@ -3360,6 +3361,7 @@ cypress@^2.1.0:
33603361
lazy-ass "1.6.0"
33613362
listr "0.12.0"
33623363
lodash "4.17.4"
3364+
log-symbols "2.2.0"
33633365
minimist "1.2.0"
33643366
progress "1.1.8"
33653367
ramda "0.24.1"
@@ -3911,6 +3913,12 @@ execa@^0.8.0:
39113913
signal-exit "^3.0.0"
39123914
strip-eof "^1.0.0"
39133915

3916+
executable@4.1.1:
3917+
version "4.1.1"
3918+
resolved "https://registry.yarnpkg.com/executable/-/executable-4.1.1.tgz#41532bff361d3e57af4d763b70582db18f5d133c"
3919+
dependencies:
3920+
pify "^2.2.0"
3921+
39143922
exit-hook@^1.0.0:
39153923
version "1.1.1"
39163924
resolved "https://registry.yarnpkg.com/exit-hook/-/exit-hook-1.1.1.tgz#f05ca233b48c05d54fff07765df8507e95c02ff8"
@@ -5989,18 +5997,18 @@ log-horizon@^0.1.2:
59895997
chalk "^2.3.1"
59905998
log-update "^2.3.0"
59915999

6000+
log-symbols@2.2.0, log-symbols@^2.1.0:
6001+
version "2.2.0"
6002+
resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-2.2.0.tgz#5740e1c5d6f0dfda4ad9323b5332107ef6b4c40a"
6003+
dependencies:
6004+
chalk "^2.0.1"
6005+
59926006
log-symbols@^1.0.2:
59936007
version "1.0.2"
59946008
resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-1.0.2.tgz#376ff7b58ea3086a0f09facc74617eca501e1a18"
59956009
dependencies:
59966010
chalk "^1.0.0"
59976011

5998-
log-symbols@^2.1.0:
5999-
version "2.2.0"
6000-
resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-2.2.0.tgz#5740e1c5d6f0dfda4ad9323b5332107ef6b4c40a"
6001-
dependencies:
6002-
chalk "^2.0.1"
6003-
60046012
log-update@^1.0.2:
60056013
version "1.0.2"
60066014
resolved "https://registry.yarnpkg.com/log-update/-/log-update-1.0.2.tgz#19929f64c4093d2d2e7075a1dad8af59c296b8d1"
@@ -8685,12 +8693,6 @@ supports-color@^3.1.2, supports-color@^3.2.3:
86858693
dependencies:
86868694
has-flag "^1.0.0"
86878695

8688-
supports-color@^4.0.0:
8689-
version "4.5.0"
8690-
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-4.5.0.tgz#be7a0de484dec5c5cddf8b3d59125044912f635b"
8691-
dependencies:
8692-
has-flag "^2.0.0"
8693-
86948696
supports-color@^5.1.0, supports-color@^5.3.0, supports-color@^5.4.0:
86958697
version "5.4.0"
86968698
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.4.0.tgz#1c6b337402c2137605efe19f10fec390f6faab54"

0 commit comments

Comments
 (0)