Organizing testable backbone and require.js applications

GFX9.COM share Organizing testable backbone and require.js applications, you can download now.

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.


Download the source files from Github.

submit to reddit

Similar content