Skip to content

Instantly share code, notes, and snippets.

@gryzzly
Created September 9, 2013 16:02
Show Gist options
  • Save gryzzly/6497759 to your computer and use it in GitHub Desktop.
Save gryzzly/6497759 to your computer and use it in GitHub Desktop.
/* global Tyrtle */
// by convention, test files end with `-test`
var tests = Object.keys(window.__karma__.files).filter(RegExp.prototype.test.bind(/-test\.js$/));
window.requirejs.config({
// Karma serves files from '/base'
baseUrl: '/base/public/',
paths: {
'$': 'lib/dollar/dollar',
'backbone': 'vendor/backbone',
'underscore': 'lib/underscore'
},
// ask Require.js to load these files (all our tests)
deps: tests,
// start tests, once Require.js is done
callback: function () {
window.__karma__.start();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment