A really simple example of running jasmine tests using RequireJS in Node as I couldn't find any when I was trying to work it out. It uses some external libraries just as an example but these are not necessary to get it all working.
- copy the gist code into a directory
- download jquery, underscore, backbone, copy them into the same directory and name them jquery.js, underscore.js and backbone.js
- install requirejs, jasmine-node and jsdom globally via npm
- run
jasmine-node foo-spec.js
to see the magic