protractor.conf.js 870 B

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