blob: 73e4e6806cd6b451dc89181ce574c386c6c837da [file] [log] [blame]
Shaaban Ebrahim6cc77cb2019-11-11 10:51:21 +02001// @ts-check
2// Protractor configuration file, see link for more information
3// https://github.com/angular/protractor/blob/master/lib/config.ts
4
5const { SpecReporter } = require('jasmine-spec-reporter');
6
7/**
8 * @type { import("protractor").Config }
9 */
10exports.config = {
11 allScriptsTimeout: 11000,
12 specs: [
13 './src/**/*.e2e-spec.ts'
14 ],
15 capabilities: {
16 'browserName': 'chrome'
17 },
18 directConnect: true,
19 baseUrl: 'http://localhost:4200/',
20 framework: 'jasmine',
21 jasmineNodeOpts: {
22 showColors: true,
23 defaultTimeoutInterval: 30000,
24 print: function() {}
25 },
26 onPrepare() {
27 require('ts-node').register({
28 project: require('path').join(__dirname, './tsconfig.json')
29 });
30 jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
31 }
32};