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:
26
node_modules/playwright/lib/reporters/teleEmitter.js
generated
vendored
26
node_modules/playwright/lib/reporters/teleEmitter.js
generated
vendored
@@ -37,7 +37,8 @@ var import_teleReceiver = require("../isomorphic/teleReceiver");
|
||||
class TeleReporterEmitter {
|
||||
constructor(messageSink, options = {}) {
|
||||
this._resultKnownAttachmentCounts = /* @__PURE__ */ new Map();
|
||||
// In case there is blob reporter and UI mode, make sure one does override
|
||||
this._resultKnownErrorCounts = /* @__PURE__ */ new Map();
|
||||
// In case there is blob reporter and UI mode, make sure one doesn't override
|
||||
// the id assigned by the other.
|
||||
this._idSymbol = Symbol("id");
|
||||
this._messageSink = messageSink;
|
||||
@@ -66,6 +67,20 @@ class TeleReporterEmitter {
|
||||
}
|
||||
});
|
||||
}
|
||||
async onTestPaused(test, result) {
|
||||
const resultId = result[this._idSymbol];
|
||||
this._resultKnownErrorCounts.set(resultId, result.errors.length);
|
||||
this._messageSink({
|
||||
method: "onTestPaused",
|
||||
params: {
|
||||
testId: test.id,
|
||||
resultId,
|
||||
errors: result.errors
|
||||
}
|
||||
});
|
||||
await new Promise(() => {
|
||||
});
|
||||
}
|
||||
onTestEnd(test, result) {
|
||||
const testEnd = {
|
||||
testId: test.id,
|
||||
@@ -81,7 +96,9 @@ class TeleReporterEmitter {
|
||||
result: this._serializeResultEnd(result)
|
||||
}
|
||||
});
|
||||
this._resultKnownAttachmentCounts.delete(result[this._idSymbol]);
|
||||
const resultId = result[this._idSymbol];
|
||||
this._resultKnownAttachmentCounts.delete(resultId);
|
||||
this._resultKnownErrorCounts.delete(resultId);
|
||||
}
|
||||
onStepBegin(test, result, step) {
|
||||
step[this._idSymbol] = (0, import_utils.createGuid)();
|
||||
@@ -221,11 +238,12 @@ class TeleReporterEmitter {
|
||||
};
|
||||
}
|
||||
_serializeResultEnd(result) {
|
||||
const id = result[this._idSymbol];
|
||||
return {
|
||||
id: result[this._idSymbol],
|
||||
id,
|
||||
duration: result.duration,
|
||||
status: result.status,
|
||||
errors: result.errors,
|
||||
errors: this._resultKnownErrorCounts.has(id) ? result.errors.slice(this._resultKnownAttachmentCounts.get(id)) : result.errors,
|
||||
annotations: result.annotations?.length ? this._relativeAnnotationLocations(result.annotations) : void 0
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user