perf(test): avoid heavy browser barrels in pw-ai tests

This commit is contained in:
Peter Steinberger
2026-02-14 03:13:32 +00:00
parent 115444b37c
commit 7f227fc8cc
2 changed files with 15 additions and 23 deletions

View File

@@ -25,19 +25,7 @@ describe("run-node script", () => {
const indexPath = path.join(tmp, "dist", "control-ui", "index.html");
await fs.mkdir(fakeBinDir, { recursive: true });
await fs.mkdir(path.join(tmp, "src"), { recursive: true });
await fs.mkdir(path.dirname(indexPath), { recursive: true });
await fs.writeFile(path.join(tmp, "src", "index.ts"), "export {};\n", "utf-8");
await fs.writeFile(
path.join(tmp, "package.json"),
JSON.stringify({ name: "openclaw" }),
"utf-8",
);
await fs.writeFile(
path.join(tmp, "tsconfig.json"),
JSON.stringify({ compilerOptions: {} }),
"utf-8",
);
await fs.writeFile(indexPath, "<html>sentinel</html>\n", "utf-8");
await fs.writeFile(