protractor.conf.js 806 B

123456789101112131415161718192021222324252627282930
  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 } = require("jasmine-spec-reporter");
  5. /**
  6. * @type { import("protractor").Config }
  7. */
  8. exports.config = {
  9. allScriptsTimeout: 11000,
  10. specs: ["./src/**/*.e2e-spec.ts"],
  11. capabilities: {
  12. browserName: "chrome",
  13. },
  14. directConnect: true,
  15. baseUrl: "http://localhost:4200/",
  16. framework: "jasmine",
  17. jasmineNodeOpts: {
  18. showColors: true,
  19. defaultTimeoutInterval: 30000,
  20. print: function () {},
  21. },
  22. onPrepare() {
  23. require("ts-node").register({
  24. project: require("path").join(__dirname, "./tsconfig.json"),
  25. });
  26. jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
  27. },
  28. };