Update npm packages (73 packages including @jqhtml 2.3.36)
Update npm registry domain from privatenpm.hanson.xyz to npm.internal.hanson.xyz 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
16
node_modules/playwright/lib/reporters/html.js
generated
vendored
16
node_modules/playwright/lib/reporters/html.js
generated
vendored
@@ -51,6 +51,7 @@ const isHtmlReportOption = (type) => {
|
||||
class HtmlReporter {
|
||||
constructor(options) {
|
||||
this._topLevelErrors = [];
|
||||
this._machines = [];
|
||||
this._options = options;
|
||||
}
|
||||
version() {
|
||||
@@ -104,6 +105,9 @@ class HtmlReporter {
|
||||
onError(error) {
|
||||
this._topLevelErrors.push(error);
|
||||
}
|
||||
onMachineEnd(result) {
|
||||
this._machines.push(result);
|
||||
}
|
||||
async onEnd(result) {
|
||||
const projectSuites = this.suite.suites;
|
||||
await (0, import_utils.removeFolders)([this._outputFolder]);
|
||||
@@ -124,7 +128,7 @@ class HtmlReporter {
|
||||
noSnippets,
|
||||
noCopyPrompt
|
||||
});
|
||||
this._buildResult = await builder.build(this.config.metadata, projectSuites, result, this._topLevelErrors);
|
||||
this._buildResult = await builder.build(this.config.metadata, projectSuites, result, this._topLevelErrors, this._machines);
|
||||
}
|
||||
async onExit() {
|
||||
if (process.env.CI || !this._buildResult)
|
||||
@@ -215,7 +219,7 @@ class HtmlBuilder {
|
||||
this._dataZipFile = new import_zipBundle.yazl.ZipFile();
|
||||
this._attachmentsBaseURL = attachmentsBaseURL;
|
||||
}
|
||||
async build(metadata, projectSuites, result, topLevelErrors) {
|
||||
async build(metadata, projectSuites, result, topLevelErrors, machines) {
|
||||
const data = /* @__PURE__ */ new Map();
|
||||
for (const projectSuite of projectSuites) {
|
||||
const projectName = projectSuite.project().name;
|
||||
@@ -259,7 +263,13 @@ class HtmlBuilder {
|
||||
projectNames: projectSuites.map((r) => r.project().name),
|
||||
stats: { ...[...data.values()].reduce((a, e) => addStats(a, e.testFileSummary.stats), emptyStats()) },
|
||||
errors: topLevelErrors.map((error) => (0, import_base.formatError)(import_base.internalScreen, error).message),
|
||||
options: this._options
|
||||
options: this._options,
|
||||
machines: machines.map((s) => ({
|
||||
duration: s.duration,
|
||||
startTime: s.startTime.getTime(),
|
||||
tag: s.tag,
|
||||
shardIndex: s.shardIndex
|
||||
}))
|
||||
};
|
||||
htmlReport.files.sort((f1, f2) => {
|
||||
const w1 = f1.stats.unexpected * 1e3 + f1.stats.flaky;
|
||||
|
||||
Reference in New Issue
Block a user