aboutsummaryrefslogtreecommitdiff
path: root/testlib/node/runtime.js
diff options
context:
space:
mode:
Diffstat (limited to 'testlib/node/runtime.js')
-rw-r--r--testlib/node/runtime.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/testlib/node/runtime.js b/testlib/node/runtime.js
index 29ee508cc..dfdada9e8 100644
--- a/testlib/node/runtime.js
+++ b/testlib/node/runtime.js
@@ -53,6 +53,11 @@ let mod = System.newModule({Module: emsc, default: emsc});
let modName = System.normalizeSync(__dirname + "/../../lib/emscripten/taler-emscripten-lib.js");
System.set(modName, mod);
+process.on('unhandledRejection', function(reason, p){
+ console.log("Possibly Unhandled Rejection at: Promise ", p, " reason: ", reason);
+ process.exit(1);
+});
+
let testName = process.argv[2];
System.import("testlib/talertest")