testronaut 1.0.19 → 1.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cli.js +8 -0
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -499,6 +499,14 @@ async function serveLatestReport() {
|
|
|
499
499
|
await new Promise((resolve, reject) => {
|
|
500
500
|
server.once('error', reject);
|
|
501
501
|
server.listen(0, '127.0.0.1', resolve);
|
|
502
|
+
|
|
503
|
+
process.on('SIGINT', () => {
|
|
504
|
+
console.log('\n🛑 Shutting down…');
|
|
505
|
+
server.close(() => {
|
|
506
|
+
resolve();
|
|
507
|
+
process.exit(0);
|
|
508
|
+
});
|
|
509
|
+
});
|
|
502
510
|
});
|
|
503
511
|
|
|
504
512
|
const address = server.address();
|