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

37 lines
885 B
JavaScript
Raw Permalink 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
2022-03-11 07:06:35 +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,
2022-03-11 07:06:35 +00:00
specs: ["./src/**/*.e2e-spec.ts"],
2019-11-29 02:20:50 +00:00
capabilities: {
2022-03-11 07:06:35 +00:00
browserName: "chrome",
2019-11-29 02:20:50 +00:00
},
directConnect: true,
2022-03-11 07:06:35 +00:00
baseUrl: "http://localhost:4200/",
framework: "jasmine",
2019-11-29 02:20:50 +00:00
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 30000,
2022-03-11 07:06:35 +00:00
print: function () {},
2019-11-29 02:20:50 +00:00
},
onPrepare() {
2022-03-11 07:06:35 +00:00
require("ts-node").register({
project: require("path").join(__dirname, "./tsconfig.json"),
})
jasmine.getEnv().addReporter(
new SpecReporter({
spec: {
displayStacktrace: StacktraceOption.PRETTY,
},
})
)
},
}