solar-system
Version:
Solar System with Threejs
19 lines (13 loc) • 411 B
JavaScript
var tests = Object.keys(window.__karma__.files).filter(function (file) {
return (/Spec\.js$/.test(file));
});
requirejs.config({
// Karma serves files from '/base'
baseUrl: '/base/src',
// ask Require.js to load these files (all our tests)
deps: tests,
// start test run, once Require.js is done
callback: window.__karma__.start
});
// Show test loaded
console.log('Tests loaded: ' + tests);