@@ -14,13 +14,11 @@ if (showHelp) {
1414Usage: node run-dojo-everything.js [options]
1515
1616Options:
17- --e2e Run end-to-end tests after starting services
1817 --dry-run Show what would be started without actually running
1918 --help, -h Show this help message
2019
2120Examples:
2221 node run-dojo-everything.js
23- node run-dojo-everything.js --e2e
2422 node run-dojo-everything.js --dry-run
2523` ) ;
2624 process . exit ( 0 ) ;
@@ -131,14 +129,6 @@ const dojo = {
131129 }
132130}
133131
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-
142132const procs = [
143133 serverStarter ,
144134 serverStarterAllFeatures ,
@@ -154,10 +144,6 @@ const procs = [
154144 dojo
155145] ;
156146
157- if ( args . includes ( '--e2e' ) ) {
158- procs . push ( e2e ) ;
159- }
160-
161147function printDryRunServices ( procs ) {
162148 console . log ( 'Dry run - would start the following services:' ) ;
163149 procs . forEach ( proc => {
@@ -183,7 +169,7 @@ async function main() {
183169
184170 console . log ( 'Starting services: ' , procs . map ( p => p . name ) . join ( ', ' ) ) ;
185171
186- const { result} = concurrently ( procs ) ;
172+ const { result} = concurrently ( procs , { killOthersOn : [ 'failure' , 'success' ] } ) ;
187173
188174 result . then ( ( ) => process . exit ( 0 ) ) . catch ( ( err ) => {
189175 console . error ( err ) ;
0 commit comments