UNPKG

@testim/testim-cli

Version:

Command line interface for running Testing on you CI

30 lines (25 loc) 700 B
/** * Configure bluebird promises */ var Promise = require('bluebird'); Promise.config({ // Enable warnings. warnings: true, // Enable long stack traces. longStackTraces: true, // Enable cancellation. cancellation: true }); process.on('uncaughtException', function(err) { console.error("Caught exception:", err, err.stack); }); process.on("unhandledRejection", function(reason, promise) { var err = new Error("Unhandled Promise rejection"); err.reason = reason; err.promise = promise; throw err; }); // NOTE: event name is camelCase as per node convention process.on("rejectionHandled", function(promise) { console.error("rejectionHandled"); });