@@ -14,13 +14,11 @@ if (showHelp) {
14
14
Usage: node run-dojo-everything.js [options]
15
15
16
16
Options:
17
- --e2e Run end-to-end tests after starting services
18
17
--dry-run Show what would be started without actually running
19
18
--help, -h Show this help message
20
19
21
20
Examples:
22
21
node run-dojo-everything.js
23
- node run-dojo-everything.js --e2e
24
22
node run-dojo-everything.js --dry-run
25
23
` ) ;
26
24
process . exit ( 0 ) ;
@@ -131,14 +129,6 @@ const dojo = {
131
129
}
132
130
}
133
131
134
- // TODO: wire in actual tests here
135
- const e2e = {
136
- // Silly little sleep until we have a healthcheck or something on agents to know they're ready
137
- command : 'npx wait-port 9999 && sleep 10 && echo "I AM ECHOING INSTEAD OF RUNNING TESTS"' ,
138
- name : 'E2E' ,
139
- cwd : path . join ( gitRoot , 'typescript-sdk/apps/dojo' ) ,
140
- }
141
-
142
132
const procs = [
143
133
serverStarter ,
144
134
serverStarterAllFeatures ,
@@ -154,10 +144,6 @@ const procs = [
154
144
dojo
155
145
] ;
156
146
157
- if ( args . includes ( '--e2e' ) ) {
158
- procs . push ( e2e ) ;
159
- }
160
-
161
147
function printDryRunServices ( procs ) {
162
148
console . log ( 'Dry run - would start the following services:' ) ;
163
149
procs . forEach ( proc => {
@@ -183,7 +169,7 @@ async function main() {
183
169
184
170
console . log ( 'Starting services: ' , procs . map ( p => p . name ) . join ( ', ' ) ) ;
185
171
186
- const { result} = concurrently ( procs ) ;
172
+ const { result} = concurrently ( procs , { killOthersOn : [ 'failure' , 'success' ] } ) ;
187
173
188
174
result . then ( ( ) => process . exit ( 0 ) ) . catch ( ( err ) => {
189
175
console . error ( err ) ;
0 commit comments