protractor.conf.js 752B

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