Skip to content

Christopher Davis

  • About
  • Twitter
  • LinkIn
  • Github

Tag: chai

Assertion Error Diffs with Karma, Mocha, and Chai

June 14, 2019 Christopher Davis

I've been frustrated the lack of diffs in Karma with Mocha and Chai as the test and assertion backends. Turns out support for better diffs has been around for years. It just requires that a configuration option be set. The result is wonderful diffs that show's exactly what's missing or different.

Posted in JavaScriptTagged chai, karma, mocha, Testing
Blog at WordPress.com.
  • Follow Following
    • Christopher Davis
    • Already have a WordPress.com account? Log in now.
    • Christopher Davis
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
 

Loading Comments...