config.js (1461B)
1 module.exports = { 2 3 /** 4 * ### config.includeStack 5 * 6 * User configurable property, influences whether stack trace 7 * is included in Assertion error message. Default of false 8 * suppresses stack trace in the error message. 9 * 10 * chai.config.includeStack = true; // enable stack on error 11 * 12 * @param {Boolean} 13 * @api public 14 */ 15 16 includeStack: false, 17 18 /** 19 * ### config.showDiff 20 * 21 * User configurable property, influences whether or not 22 * the `showDiff` flag should be included in the thrown 23 * AssertionErrors. `false` will always be `false`; `true` 24 * will be true when the assertion has requested a diff 25 * be shown. 26 * 27 * @param {Boolean} 28 * @api public 29 */ 30 31 showDiff: true, 32 33 /** 34 * ### config.truncateThreshold 35 * 36 * User configurable property, sets length threshold for actual and 37 * expected values in assertion errors. If this threshold is exceeded, for 38 * example for large data structures, the value is replaced with something 39 * like `[ Array(3) ]` or `{ Object (prop1, prop2) }`. 40 * 41 * Set it to zero if you want to disable truncating altogether. 42 * 43 * This is especially userful when doing assertions on arrays: having this 44 * set to a reasonable large value makes the failure messages readily 45 * inspectable. 46 * 47 * chai.config.truncateThreshold = 0; // disable truncating 48 * 49 * @param {Number} 50 * @api public 51 */ 52 53 truncateThreshold: 40 54 55 };