diff --git a/lib/utils/promise.js b/lib/utils/promise.js index 19d7554d1..138546b67 100644 --- a/lib/utils/promise.js +++ b/lib/utils/promise.js @@ -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 diff --git a/package.json b/package.json index 6697aa556..40528bf0f 100644 --- a/package.json +++ b/package.json @@ -98,6 +98,9 @@ ], "jest": { "automock": false, - "setupTestFrameworkScriptFile": "/jest/customMatchers.js" + "setupTestFrameworkScriptFile": "/jest/customMatchers.js", + "globals": { + "__DEV__": true + } } }