-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: kill any child processes of server (#3)
* chore(test): Added test case where child process is not closed * minor(stop): Also kill child processes of the server * fix(deps): remove unused eslint plugins
- Loading branch information
Showing
3 changed files
with
31 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
const childProcess = require('child_process'); | ||
|
||
console.log('Starting server as child process'); | ||
const result = childProcess.spawnSync( | ||
'node', | ||
[].concat(require.resolve('./server')).concat(process.argv), | ||
{ stdio: 'inherit' } | ||
); | ||
console.log('Done'); |