Skip to content

Instantly share code, notes, and snippets.

@giuseppeg
Created August 6, 2014 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save giuseppeg/a7c415b1ff5d5c980a5c to your computer and use it in GitHub Desktop.
Save giuseppeg/a7c415b1ff5d5c980a5c to your computer and use it in GitHub Desktop.
flight test core path
'use strict';
var tests = Object.keys(window.__karma__.files).filter(function (file) {
return (/\.spec\.js$/.test(file));
});
requirejs.config({
// Karma serves files from '/base'
baseUrl: '/base/app/bower_components',
map: {
"*": {
"core": "flight/lib"
}
},
paths: {
'component': '../js/component',
'page': '../js/page'
},
// ask Require.js to load these files (all our tests)
deps: tests,
// start test run, once Require.js is done
callback: window.__karma__.start
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment