mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-16 23:55:20 +00:00
Enable promise long stack trace when testing or debugging
This commit is contained in:
@@ -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
@@ -98,6 +98,9 @@
|
||||
],
|
||||
"jest": {
|
||||
"automock": false,
|
||||
"setupTestFrameworkScriptFile": "<rootDir>/jest/customMatchers.js"
|
||||
"setupTestFrameworkScriptFile": "<rootDir>/jest/customMatchers.js",
|
||||
"globals": {
|
||||
"__DEV__": true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user