How to make Practicalmeteor:mocha show diff in failed test


#1

Currently when test failed, I’ll see something like this:

Error: expected [ Array(3) ] to deeply equal [ Array(3) ]

Is it possible to make mocha show the values/diff?


#2

If you’re using Chai as the assertion library then you can use chai.config.truncateThreshold = 0;

http://chaijs.com/guide/styles/#configtruncatethreshold