Create a gist now

Instantly share code, notes, and snippets.

Embed
/* 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