How to make Practicalmeteor:mocha show diff in failed test

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?

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

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

1 Like