How can I get Chai to show actual and expected values using toString()
问题 I recently switched from should.js to chai.js, as I discovered the former was causing snags in browser-based testing. The change didn't require any changes to my test suite, as the syntax is supported, but I see that the output of failing tests no longer shows me the actual and expected values in a useful way: AssertionError: expected [ Array(9) ] to deeply equal [ Array(9) ] I can get it to spit out a representation of these values by adding this line: chai.config.truncateThreshold = 0;