salix/e2e/smokes-tests.js

36 lines
781 B
JavaScript
Raw Normal View History

2018-03-09 19:04:03 +00:00
require('babel-core/register')({presets: ['es2015']});
process.on('warning', warning => {
console.log(warning.name);
console.log(warning.message);
console.log(warning.stack);
});
2018-12-20 16:05:30 +00:00
let verbose = false;
2018-03-09 19:04:03 +00:00
2019-01-04 12:32:04 +00:00
if (process.argv[2] === '--v')
2018-03-09 19:04:03 +00:00
verbose = true;
2018-12-20 16:05:30 +00:00
let Jasmine = require('jasmine');
let jasmine = new Jasmine();
let SpecReporter = require('jasmine-spec-reporter').SpecReporter;
2018-03-09 19:04:03 +00:00
jasmine.loadConfig({
spec_files: [
`${__dirname}/smokes/**/*[sS]pec.js`,
`${__dirname}/helpers/extensions.js`
2018-03-09 19:04:03 +00:00
],
2018-12-20 16:05:30 +00:00
helpers: []
2018-03-09 19:04:03 +00:00
});
jasmine.addReporter(new SpecReporter({
spec: {
// displayStacktrace: 'summary',
displaySuccessful: verbose,
displayFailedSpec: true,
displaySpecDuration: true
}
}));
jasmine.execute();