Skip to content

Commit 96a617a

Browse files
committed
Add wait-on to make sure project is running on CI before start Cypress
1 parent 0651554 commit 96a617a

File tree

3 files changed

+59
-7
lines changed

3 files changed

+59
-7
lines changed

Diff for: cypress.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
{}
1+
{
2+
"projectId": "design-patterns-javascript"
3+
}

Diff for: package.json

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
"redux-mock-store": "^1.5.3",
7676
"storybook-addon-styled-component-theme": "^1.1.1",
7777
"surge": "^0.20.1",
78+
"wait-on": "^3.2.0",
7879
"webpack": "^4.29.0",
7980
"webpack-bundle-analyzer": "^3.0.3",
8081
"webpack-cli": "^3.2.1",

Diff for: yarn.lock

+55-6
Original file line numberDiff line numberDiff line change
@@ -6018,6 +6018,16 @@ [email protected]:
60186018
resolved "https://registry.yarnpkg.com/hoek/-/hoek-4.2.1.tgz#9634502aa12c445dd5a7c5734b572bb8738aacbb"
60196019
integrity sha512-QLg82fGkfnJ/4iy1xZ81/9SIJiq1NGFUMGs6ParyjBZr6jW2Ufj/snDqTHixNlHdPNwN2RLVD0Pi3igeK9+JfA==
60206020

6021+
6022+
version "5.0.4"
6023+
resolved "https://registry.yarnpkg.com/hoek/-/hoek-5.0.4.tgz#0f7fa270a1cafeb364a4b2ddfaa33f864e4157da"
6024+
integrity sha512-Alr4ZQgoMlnere5FZJsIyfIjORBqZll5POhDsF4q64dPuJR6rNxXdDxtHSQq8OXRurhmx+PWYEE8bXRROY8h0w==
6025+
6026+
6027+
version "6.1.2"
6028+
resolved "https://registry.yarnpkg.com/hoek/-/hoek-6.1.2.tgz#99e6d070561839de74ee427b61aa476bd6bddfd6"
6029+
integrity sha512-6qhh/wahGYZHFSFw12tBbJw5fsAhhwrrG/y3Cs0YMTv2WzMnL0oLPnQJjv1QJvEfylRSOFuP+xCu+tdx0tD16Q==
6030+
60216031
hoist-non-react-statics@^2.3.1:
60226032
version "2.5.5"
60236033
resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-2.5.5.tgz#c5903cf409c0dfd908f388e619d86b9c1174cb47"
@@ -6743,6 +6753,13 @@ [email protected], isarray@^1.0.0, isarray@~1.0.0:
67436753
resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11"
67446754
integrity sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=
67456755

6756+
6757+
version "3.2.0"
6758+
resolved "https://registry.yarnpkg.com/isemail/-/isemail-3.2.0.tgz#59310a021931a9fb06bbb51e155ce0b3f236832c"
6759+
integrity sha512-zKqkK+O+dGqevc93KNsbZ/TqTUFd46MwWjYOoMrjIMZ51eU7DtQG3Wmd9SQQT7i7RVnuTPEiYEWHU3MSbxC1Tg==
6760+
dependencies:
6761+
punycode "2.x.x"
6762+
67466763
isexe@^2.0.0:
67476764
version "2.0.0"
67486765
resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10"
@@ -7204,6 +7221,15 @@ jest@^24.0.0:
72047221
import-local "^2.0.0"
72057222
jest-cli "^24.0.0"
72067223

7224+
joi@^13.0.0:
7225+
version "13.7.0"
7226+
resolved "https://registry.yarnpkg.com/joi/-/joi-13.7.0.tgz#cfd85ebfe67e8a1900432400b4d03bbd93fb879f"
7227+
integrity sha512-xuY5VkHfeOYK3Hdi91ulocfuFopwgbSORmIwzcwHKESQhC7w1kD5jaVSPnqDxS2I8t3RZ9omCKAxNwXN5zG1/Q==
7228+
dependencies:
7229+
hoek "5.x.x"
7230+
isemail "3.x.x"
7231+
topo "3.x.x"
7232+
72077233
js-beautify@^1.8.9:
72087234
version "1.9.0"
72097235
resolved "https://registry.yarnpkg.com/js-beautify/-/js-beautify-1.9.0.tgz#2562fcdee340f9f962ae2ec4a8a40e7aaa6d964f"
@@ -9268,16 +9294,16 @@ [email protected]:
92689294
resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.3.2.tgz#9653a036fb7c1ee42342f2325cceefea3926c48d"
92699295
integrity sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=
92709296

9297+
[email protected], punycode@^2.1.0, punycode@^2.1.1:
9298+
version "2.1.1"
9299+
resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec"
9300+
integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==
9301+
92719302
punycode@^1.2.4, punycode@^1.4.1:
92729303
version "1.4.1"
92739304
resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e"
92749305
integrity sha1-wNWmOycYgArY4esPpSachN1BhF4=
92759306

9276-
punycode@^2.1.0, punycode@^2.1.1:
9277-
version "2.1.1"
9278-
resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec"
9279-
integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==
9280-
92819307
q@^1.1.2:
92829308
version "1.5.1"
92839309
resolved "https://registry.yarnpkg.com/q/-/q-1.5.1.tgz#7e32f75b41381291d04611f1bf14109ac00651d7"
@@ -10107,7 +10133,7 @@ [email protected]:
1010710133
tunnel-agent "^0.6.0"
1010810134
uuid "^3.1.0"
1010910135

10110-
[email protected], request@^2.86.0, request@^2.87.0:
10136+
[email protected], request@^2.86.0, request@^2.87.0, request@^2.88.0:
1011110137
version "2.88.0"
1011210138
resolved "https://registry.yarnpkg.com/request/-/request-2.88.0.tgz#9c2fca4f7d35b592efe57c7f0a55e81052124fef"
1011310139
integrity sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==
@@ -10273,6 +10299,11 @@ run-queue@^1.0.0, run-queue@^1.0.3:
1027310299
dependencies:
1027410300
aproba "^1.1.1"
1027510301

10302+
rx@^4.1.0:
10303+
version "4.1.0"
10304+
resolved "https://registry.yarnpkg.com/rx/-/rx-4.1.0.tgz#a5f13ff79ef3b740fe30aa803fb09f98805d4782"
10305+
integrity sha1-pfE/957zt0D+MKqAP7CfmIBdR4I=
10306+
1027610307
rxjs@^5.0.0-beta.11:
1027710308
version "5.5.12"
1027810309
resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-5.5.12.tgz#6fa61b8a77c3d793dbaf270bee2f43f652d741cc"
@@ -11364,6 +11395,13 @@ toggle-selection@^1.0.3:
1136411395
resolved "https://registry.yarnpkg.com/toggle-selection/-/toggle-selection-1.0.6.tgz#6e45b1263f2017fa0acc7d89d78b15b8bf77da32"
1136511396
integrity sha1-bkWxJj8gF/oKzH2J14sVuL932jI=
1136611397

11398+
11399+
version "3.0.3"
11400+
resolved "https://registry.yarnpkg.com/topo/-/topo-3.0.3.tgz#d5a67fb2e69307ebeeb08402ec2a2a6f5f7ad95c"
11401+
integrity sha512-IgpPtvD4kjrJ7CRA3ov2FhWQADwv+Tdqbsf1ZnPUSAtCJ9e1Z44MmoSGDXGk4IppoZA7jd/QRkNddlLJWlUZsQ==
11402+
dependencies:
11403+
hoek "6.x.x"
11404+
1136711405
toposort@^1.0.0:
1136811406
version "1.0.7"
1136911407
resolved "https://registry.yarnpkg.com/toposort/-/toposort-1.0.7.tgz#2e68442d9f64ec720b8cc89e6443ac6caa950029"
@@ -11758,6 +11796,17 @@ w3c-hr-time@^1.0.1:
1175811796
dependencies:
1175911797
browser-process-hrtime "^0.1.2"
1176011798

11799+
wait-on@^3.2.0:
11800+
version "3.2.0"
11801+
resolved "https://registry.yarnpkg.com/wait-on/-/wait-on-3.2.0.tgz#c83924df0fc42a675c678324c49c769d378bcb85"
11802+
integrity sha512-QUGNKlKLDyY6W/qHdxaRlXUAgLPe+3mLL/tRByHpRNcHs/c7dZXbu+OnJWGNux6tU1WFh/Z8aEwvbuzSAu79Zg==
11803+
dependencies:
11804+
core-js "^2.5.7"
11805+
joi "^13.0.0"
11806+
minimist "^1.2.0"
11807+
request "^2.88.0"
11808+
rx "^4.1.0"
11809+
1176111810
walker@~1.0.5:
1176211811
version "1.0.7"
1176311812
resolved "https://registry.yarnpkg.com/walker/-/walker-1.0.7.tgz#2f7f9b8fd10d677262b18a884e28d19618e028fb"

0 commit comments

Comments
 (0)