public-gateway-cacher/e2e/protractor.conf.js

37 lines
872 B
JavaScript
Raw Normal View History

2019-11-29 02:20:50 +00:00
// @ts-check
// Protractor configuration file, see link for more information
// https://github.com/angular/protractor/blob/master/lib/config.ts
2020-07-10 04:53:52 +00:00
const { SpecReporter, StacktraceOption } = require('jasmine-spec-reporter');
2019-11-29 02:20:50 +00:00
/**
* @type { import("protractor").Config }
*/
exports.config = {
allScriptsTimeout: 11000,
specs: [
'./src/**/*.e2e-spec.ts'
],
capabilities: {
browserName: 'chrome'
},
directConnect: true,
baseUrl: 'http://localhost:4200/',
framework: 'jasmine',
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 30000,
2020-07-10 04:53:52 +00:00
print: function () { }
2019-11-29 02:20:50 +00:00
},
onPrepare() {
require('ts-node').register({
project: require('path').join(__dirname, './tsconfig.json')
});
2020-07-10 04:53:52 +00:00
jasmine.getEnv().addReporter(new SpecReporter({
spec: {
displayStacktrace: StacktraceOption.PRETTY
}
}));
2019-11-29 02:20:50 +00:00
}
2020-07-10 04:53:52 +00:00
};