So you've learned a bit about JavaScript testing, and are now ready to begin testing your Backbone apps. The only problem is that your team uses Require.js to organize and load your scripts. This can make your modules considerably more difficult to test.
In this screencast, I'll break everything down. In addition to Backbone and Require.js, we'll be using Jam to load our dependencies, and Testem, which provides an easy interface to perform automated tests (using Jasmine). Finally, we'll create a minimal build script.
Screencast
Download the source files from Github.
Comments