Created
August 6, 2014 14:15
-
-
Save giuseppeg/a7c415b1ff5d5c980a5c to your computer and use it in GitHub Desktop.
flight test core path
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
'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