mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 01:21:25 +00:00
perf(test): avoid heavy browser barrels in pw-ai tests
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user