We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 387cf6f commit 4a781baCopy full SHA for 4a781ba
test/runner.js
@@ -23,6 +23,13 @@ import * as testLFSServer from './server/server';
23
// http://eng.wealthfront.com/2016/11/03/handling-unhandledrejections-in-node-and-the-browser/
24
process.on('unhandledRejection', (err) => {
25
console.error('CAUGHT ERROR:', err); // eslint-disable-line no-console
26
+
27
+ try {
28
+ testLFSServer.stop();
29
+ } catch (e) {
30
+ // The server may not have been started yet
31
+ }
32
33
process.exit(1);
34
});
35
0 commit comments