File tree Expand file tree Collapse file tree 1 file changed +18
-3
lines changed
Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -128,14 +128,29 @@ const startSampleAndRun = async () => {
128128 const runApp = runAppOnDev ( params ) ;
129129 const runCypress = `wait-on -t ${ defaultTimeout } ${ waitOnOption } && cypress run --browser ${ browser } --headless --config baseUrl=http://localhost:${ frameworkPort [ framework ] } --spec "cypress/e2e/${ framework } /${ testFile } .spec.*"` ;
130130
131- return concurrently (
131+ // return concurrently(
132+ // [runApp, runCypress],
133+ // {
134+ // killOthers: ['success', 'failure'],
135+ // successCondition: ['first'],
136+ // }
137+ // )
138+ // .then(() => {
139+ // process.exit(0);
140+ // })
141+ // .catch((exitInfos) => {
142+ // // Concurrently throws SIGTERM with exit code 0 on success, check code and exit with it
143+ // const { exitCode } = exitInfos[0];
144+ // process.exit(exitCode);
145+ // });
146+ const { result} = concurrently (
132147 [ runApp , runCypress ] ,
133148 {
134149 killOthers : [ 'success' , 'failure' ] ,
135150 successCondition : [ 'first' ] ,
136151 }
137- )
138- . then ( ( ) => {
152+ ) ;
153+ return result . then ( ( ) => {
139154 process . exit ( 0 ) ;
140155 } )
141156 . catch ( ( exitInfos ) => {
You can’t perform that action at this time.
0 commit comments