Chapter 13. Testing—and then what?

This chapter covers

  • Creating automated tests using Mocha
  • Running your tests at the command line in Node.js
  • Running your tests in the browsers you intend to support

There comes a point during project development when you need to test things to be sure they’re working as expected. Doing manual tests at the beginning of the project might seem like it would suffice, but, as the code gets more and more involved, the testing steps need to become more detailed to ensure that there are no bugs. The problem with this is that testing becomes tedious—as focused as you try to be, it’s easy to miss something, and a bug can slip through.

With manual testing, you’re also dependent on your tester because tests can only ...

Get WebAssembly in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.