2018-12-20 13:37:29 +00:00
|
|
|
require('@babel/register')({presets: ['@babel/preset-env']});
|
|
|
|
require('@babel/polyfill');
|
2017-09-10 18:04:22 +00:00
|
|
|
|
|
|
|
process.on('warning', warning => {
|
|
|
|
console.log(warning.name);
|
|
|
|
console.log(warning.message);
|
|
|
|
console.log(warning.stack);
|
|
|
|
});
|
|
|
|
|
2018-11-22 11:34:20 +00:00
|
|
|
let verbose = false;
|
2017-09-10 18:04:22 +00:00
|
|
|
|
2018-11-22 11:34:20 +00:00
|
|
|
if (process.argv[2] === '--v')
|
2017-09-10 18:04:22 +00:00
|
|
|
verbose = true;
|
|
|
|
|
2018-11-22 11:34:20 +00:00
|
|
|
|
|
|
|
let Jasmine = require('jasmine');
|
|
|
|
let jasmine = new Jasmine();
|
|
|
|
let SpecReporter = require('jasmine-spec-reporter').SpecReporter;
|
2017-09-10 18:04:22 +00:00
|
|
|
|
|
|
|
jasmine.loadConfig({
|
|
|
|
spec_files: [
|
2018-01-08 12:40:05 +00:00
|
|
|
'./e2e/**/*[sS]pec.js',
|
|
|
|
'./e2e/helpers/extensions.js'
|
2017-09-10 18:04:22 +00:00
|
|
|
],
|
|
|
|
helpers: [
|
2018-01-04 10:43:28 +00:00
|
|
|
'/services/utils/jasmineHelpers.js'
|
2017-09-10 18:04:22 +00:00
|
|
|
]
|
|
|
|
});
|
|
|
|
|
|
|
|
jasmine.addReporter(new SpecReporter({
|
|
|
|
spec: {
|
|
|
|
// displayStacktrace: 'summary',
|
|
|
|
displaySuccessful: verbose,
|
|
|
|
displayFailedSpec: true,
|
|
|
|
displaySpecDuration: true
|
|
|
|
}
|
|
|
|
}));
|
|
|
|
|
|
|
|
jasmine.execute();
|