Created
September 9, 2013 16:02
-
-
Save gryzzly/6497759 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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