20 lines
471 B
JavaScript
Vendored
20 lines
471 B
JavaScript
Vendored
tests = [];
|
|
for (var file in window.__karma__.files) {
|
|
if (window.__karma__.files.hasOwnProperty(file)) {
|
|
if (/Spec\.js$/.test(file)) {
|
|
tests.push(file);
|
|
}
|
|
}
|
|
}
|
|
|
|
require.config({
|
|
// Karma serves files under /base, which is the basePath from your config file
|
|
baseUrl: '/base/public/js',
|
|
|
|
// dynamically load all test files
|
|
deps: tests,
|
|
|
|
// we have to kickoff jasmine, as it is asynchronous
|
|
callback: window.__karma__.start
|
|
});
|