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:
31
node_modules/playwright/lib/isomorphic/testTree.js
generated
vendored
31
node_modules/playwright/lib/isomorphic/testTree.js
generated
vendored
@@ -19,7 +19,6 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
||||
var testTree_exports = {};
|
||||
__export(testTree_exports, {
|
||||
TestTree: () => TestTree,
|
||||
collectTestIds: () => collectTestIds,
|
||||
sortAndPropagateStatus: () => sortAndPropagateStatus,
|
||||
statusEx: () => statusEx
|
||||
});
|
||||
@@ -242,16 +241,6 @@ class TestTree {
|
||||
shortRoot.location = this.rootItem.location;
|
||||
this.rootItem = shortRoot;
|
||||
}
|
||||
testIds() {
|
||||
const result = /* @__PURE__ */ new Set();
|
||||
const visit = (treeItem) => {
|
||||
if (treeItem.kind === "case")
|
||||
treeItem.tests.forEach((t) => result.add(t.id));
|
||||
treeItem.children.forEach(visit);
|
||||
};
|
||||
visit(this.rootItem);
|
||||
return result;
|
||||
}
|
||||
fileNames() {
|
||||
const result = /* @__PURE__ */ new Set();
|
||||
const visit = (treeItem) => {
|
||||
@@ -276,7 +265,7 @@ class TestTree {
|
||||
return this._treeItemById.get(id);
|
||||
}
|
||||
collectTestIds(treeItem) {
|
||||
return treeItem ? collectTestIds(treeItem) : /* @__PURE__ */ new Set();
|
||||
return collectTestIds(treeItem);
|
||||
}
|
||||
}
|
||||
function sortAndPropagateStatus(treeItem) {
|
||||
@@ -313,22 +302,28 @@ function sortAndPropagateStatus(treeItem) {
|
||||
}
|
||||
function collectTestIds(treeItem) {
|
||||
const testIds = /* @__PURE__ */ new Set();
|
||||
const locations = /* @__PURE__ */ new Set();
|
||||
const visit = (treeItem2) => {
|
||||
if (treeItem2.kind !== "test" && treeItem2.kind !== "case") {
|
||||
treeItem2.children.forEach(visit);
|
||||
return;
|
||||
}
|
||||
let fileItem = treeItem2;
|
||||
while (fileItem && fileItem.parent && !(fileItem.kind === "group" && fileItem.subKind === "file"))
|
||||
fileItem = fileItem.parent;
|
||||
locations.add(fileItem.location.file);
|
||||
if (treeItem2.kind === "case")
|
||||
treeItem2.tests.map((t) => t.id).forEach((id) => testIds.add(id));
|
||||
else if (treeItem2.kind === "test")
|
||||
testIds.add(treeItem2.id);
|
||||
treeItem2.tests.forEach((test) => testIds.add(test.id));
|
||||
else
|
||||
treeItem2.children?.forEach(visit);
|
||||
testIds.add(treeItem2.id);
|
||||
};
|
||||
visit(treeItem);
|
||||
return testIds;
|
||||
return { testIds, locations };
|
||||
}
|
||||
const statusEx = Symbol("statusEx");
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
TestTree,
|
||||
collectTestIds,
|
||||
sortAndPropagateStatus,
|
||||
statusEx
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user