Skip to content

Commit f7f32fd

Browse files
address comments
1 parent 343cdc0 commit f7f32fd

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

test/helpers/start-app.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ module.exports = async function startApp(appPath) {
1010
await execa('yarn', ['install'], execOpts);
1111

1212
console.log('starting serve');
13+
14+
// `yarn` has a bug where even if the process gets killed, it leaves the child process (ember in this case) orphaned.
15+
// Hence we are using `ember` directly here to overcome the above shortcoming and ensure that the ember process is always killed
16+
// cleanly.
1317
const emberServe = execa('ember', ['serve'], execOpts);
1418
emberServe.stdout.pipe(process.stdout);
1519

@@ -29,9 +33,6 @@ module.exports = async function startApp(appPath) {
2933
} catch (e) {
3034
// Process is allowed to exit with a non zero exit status code.
3135
}
32-
if (!this.killed) {
33-
throw new Error(`the process ${this.pid} wasn't killed.`);
34-
}
3536
};
3637

3738
return { emberServe };

0 commit comments

Comments
 (0)