Skip to content

Commit d0cfb80

Browse files
committed
Bug fix
1 parent 66ee6ea commit d0cfb80

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

scripts/webpack-test.js

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff 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) => {

0 commit comments

Comments
 (0)