salix/e2e/tests.js

38 lines
796 B
JavaScript
Raw Normal View History

require('@babel/register')({presets: ['@babel/preset-env']});
require('@babel/polyfill');
process.on('warning', warning => {
console.log(warning.name);
console.log(warning.message);
console.log(warning.stack);
});
let verbose = false;
if (process.argv[2] === '--v')
verbose = true;
let Jasmine = require('jasmine');
let jasmine = new Jasmine();
let SpecReporter = require('jasmine-spec-reporter').SpecReporter;
jasmine.loadConfig({
spec_files: [
'./e2e/**/*[sS]pec.js',
'./e2e/helpers/extensions.js'
],
2018-12-20 16:05:30 +00:00
helpers: []
});
jasmine.addReporter(new SpecReporter({
spec: {
// displayStacktrace: 'summary',
displaySuccessful: verbose,
displayFailedSpec: true,
displaySpecDuration: true
}
}));
jasmine.execute();