2017-09-08 12:37:55 +00:00
|
|
|
require('babel-core/register')({presets: ['es2015']});
|
|
|
|
|
2017-09-10 18:04:22 +00:00
|
|
|
process.on('warning', warning => {
|
|
|
|
console.log(warning.name);
|
|
|
|
console.log(warning.message);
|
|
|
|
console.log(warning.stack);
|
|
|
|
});
|
2017-09-08 12:37:55 +00:00
|
|
|
|
|
|
|
var verbose = false;
|
|
|
|
|
|
|
|
if (process.argv[2] === '--v') {
|
|
|
|
verbose = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
var Jasmine = require('jasmine');
|
|
|
|
var jasmine = new Jasmine();
|
|
|
|
var SpecReporter = require('jasmine-spec-reporter').SpecReporter;
|
|
|
|
|
|
|
|
jasmine.loadConfig({
|
|
|
|
spec_dir: 'services/',
|
|
|
|
spec_files: [
|
|
|
|
'**/specs/*[sS]pec.js'
|
|
|
|
],
|
|
|
|
helpers: [
|
|
|
|
// to implement
|
|
|
|
// '/api/utils/jasmineHelpers.js'
|
|
|
|
]
|
|
|
|
});
|
|
|
|
|
|
|
|
jasmine.addReporter(new SpecReporter({
|
|
|
|
spec: {
|
|
|
|
// displayStacktrace: 'summary',
|
|
|
|
displaySuccessful: verbose,
|
|
|
|
displayFailedSpec: true,
|
|
|
|
displaySpecDuration: true
|
|
|
|
}
|
|
|
|
}));
|
|
|
|
|
|
|
|
jasmine.execute();
|