From a431c5fe5f08e5bb6b5fdd2f43ec5f1d8e3cc302 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 19 Jan 2017 08:45:39 +0900 Subject: [PATCH] :v: --- test/api.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/api.js b/test/api.js index d0af629ca0..5b7c95e9a8 100644 --- a/test/api.js +++ b/test/api.js @@ -5,6 +5,13 @@ // During the test the env variable is set to test process.env.NODE_ENV = 'test'; +// Display detail of unhandled promise rejection +process.on('unhandledRejection', console.dir); + +// Init babel +require('babel-core/register'); +require('babel-polyfill'); + const chai = require('chai'); const chaiHttp = require('chai-http'); const should = chai.should();