Let’s test React components with TDD, Mocha, Chai, and jsdom
Anthony Ng
2577

Good article! I would advise looking into Dave Brotherstone’s excellent unexpected-react plugin rather than fighting Chai like this, your headache will be smaller. Plus, unexpected also has a plugin that supports sinon organically. Get ready for meaningful diffs from a single assertion, extensibility as easy as a function call. :-)

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.