Enable promise long stack trace when testing or debugging

This commit is contained in:
Samy Pesse
2016-05-02 22:01:05 +02:00
parent c87060454e
commit 20f1cf3dff
2 changed files with 9 additions and 1 deletions
+5
View File
@@ -1,6 +1,11 @@
var Q = require('q');
var Immutable = require('immutable');
// Debugging for long stack traces
if (global.__DEV__ || process.env.DEBUG) {
Q.longStackSupport = true;
}
/**
Reduce an array to a promise
+4 -1
View File
@@ -98,6 +98,9 @@
],
"jest": {
"automock": false,
"setupTestFrameworkScriptFile": "<rootDir>/jest/customMatchers.js"
"setupTestFrameworkScriptFile": "<rootDir>/jest/customMatchers.js",
"globals": {
"__DEV__": true
}
}
}