Chai exposes a few options to change the library configuration.
Config option | Default | Description |
---|---|---|
truncateMsgThreshold | 300 | Check message length is truncated to this value. |
truncateVariableThreshold | 100 | Variables interpolated into check message are truncated to this length. It prevents mistakes when the check name is very large, especially when aggregateChecks is false. |
aggregateChecks | true | The actual values are not interpolated into the check message. Disable for tests with 1 iteration. |
logFailures | false | When the check fails, debug messages are printed. |
example.js
The resulting