salix/services_tests.js

41 lines
823 B
JavaScript
Raw Normal View History

process.env.NODE_ENV = 'test';
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',
2017-09-08 12:37:55 +00:00
spec_files: [
2018-01-29 13:28:31 +00:00
'auth/server/**/*[sS]pec.js',
'client/common/**/*[sS]pec.js'
2017-09-08 12:37:55 +00:00
],
helpers: [
'/services/utils/jasmineHelpers.js'
2017-09-08 12:37:55 +00:00
]
});
jasmine.addReporter(new SpecReporter({
spec: {
// displayStacktrace: 'summary',
displaySuccessful: verbose,
displayFailedSpec: true,
displaySpecDuration: true
}
}));
jasmine.execute();