mirror of
https://github.com/TheBinaryNinja/tvapp2.git
synced 2026-06-04 20:15:41 -04:00
build(deps): bump playwright from 1.49.1 to 1.50.1
This commit is contained in:
20
node_modules/playwright/lib/reporters/github.js
generated
vendored
20
node_modules/playwright/lib/reporters/github.js
generated
vendored
@@ -43,10 +43,14 @@ class GitHubLogger {
|
||||
this._log(message, 'warning', options);
|
||||
}
|
||||
}
|
||||
class GitHubReporter extends _base.BaseReporter {
|
||||
constructor(...args) {
|
||||
super(...args);
|
||||
class GitHubReporter extends _base.TerminalReporter {
|
||||
constructor(options = {}) {
|
||||
super(options);
|
||||
this.githubLogger = new GitHubLogger();
|
||||
this.screen = {
|
||||
...this.screen,
|
||||
colors: _base.noColors
|
||||
};
|
||||
}
|
||||
printsToStdio() {
|
||||
return false;
|
||||
@@ -56,7 +60,7 @@ class GitHubReporter extends _base.BaseReporter {
|
||||
this._printAnnotations();
|
||||
}
|
||||
onError(error) {
|
||||
const errorMessage = (0, _base.formatError)(error, false).message;
|
||||
const errorMessage = this.formatError(error).message;
|
||||
this.githubLogger.error(errorMessage);
|
||||
}
|
||||
_printAnnotations() {
|
||||
@@ -82,14 +86,14 @@ class GitHubReporter extends _base.BaseReporter {
|
||||
}
|
||||
_printFailureAnnotations(failures) {
|
||||
failures.forEach((test, index) => {
|
||||
const title = (0, _base.formatTestTitle)(this.config, test);
|
||||
const header = (0, _base.formatTestHeader)(this.config, test, {
|
||||
const title = this.formatTestTitle(test);
|
||||
const header = this.formatTestHeader(test, {
|
||||
indent: ' ',
|
||||
index: index + 1,
|
||||
mode: 'error'
|
||||
});
|
||||
for (const result of test.results) {
|
||||
const errors = (0, _base.formatResultFailure)(test, result, ' ', _base.colors.enabled);
|
||||
const errors = (0, _base.formatResultFailure)(this.screen, test, result, ' ');
|
||||
for (const error of errors) {
|
||||
var _error$location;
|
||||
const options = {
|
||||
@@ -100,7 +104,7 @@ class GitHubReporter extends _base.BaseReporter {
|
||||
options.line = error.location.line;
|
||||
options.col = error.location.column;
|
||||
}
|
||||
const message = [header, ...(0, _base.formatRetry)(result), error.message].join('\n');
|
||||
const message = [header, ...(0, _base.formatRetry)(this.screen, result), error.message].join('\n');
|
||||
this.githubLogger.error(message, options);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user