Skip to content

Commit

Permalink
Change Protractor to use raw for stacktrace (ionic-team#1512)
Browse files Browse the repository at this point in the history
* Change Protractor to use raw for stacktrace

* Change protractor.conf.js to match Angular CLI-generated one

Co-authored-by: Mike Hartington <[email protected]>
  • Loading branch information
Matt Raible and mhartington authored Sep 25, 2020
1 parent 0dfd733 commit a80b35b
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions angular/base/e2e/protractor.conf.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
// @ts-check
// Protractor configuration file, see link for more information
// https://github.com/angular/protractor/blob/master/lib/config.ts

const { SpecReporter } = require('jasmine-spec-reporter');
const { SpecReporter, StacktraceOption } = require('jasmine-spec-reporter');

/**
* @type { import("protractor").Config }
*/
exports.config = {
allScriptsTimeout: 11000,
specs: [
'./src/**/*.e2e-spec.ts'
],
capabilities: {
'browserName': 'chrome'
browserName: 'chrome'
},
directConnect: true,
baseUrl: 'http://localhost:4200/',
Expand All @@ -23,6 +27,10 @@ exports.config = {
require('ts-node').register({
project: require('path').join(__dirname, './tsconfig.json')
});
jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
jasmine.getEnv().addReporter(new SpecReporter({
spec: {
displayStacktrace: StacktraceOption.PRETTY
}
}));
}
};

0 comments on commit a80b35b

Please sign in to comment.