40 lines
833 B
JavaScript
40 lines
833 B
JavaScript
process.on('warning', warning => {
|
|
console.log(warning.name);
|
|
console.log(warning.message);
|
|
console.log(warning.stack);
|
|
});
|
|
|
|
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: [
|
|
'auth/server/**/*[sS]pec.js',
|
|
'loopback/common/**/*[sS]pec.js',
|
|
'client/common/**/*[sS]pec.js'
|
|
],
|
|
helpers: [
|
|
'/services/utils/jasmineHelpers.js'
|
|
]
|
|
});
|
|
|
|
jasmine.addReporter(new SpecReporter({
|
|
spec: {
|
|
// displayStacktrace: 'summary',
|
|
displaySuccessful: verbose,
|
|
displayFailedSpec: true,
|
|
displaySpecDuration: true
|
|
}
|
|
}));
|
|
|
|
jasmine.execute();
|
|
|