mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 07:50:43 +00:00
test: avoid spawning cli help in metadata test
This commit is contained in:
@@ -29,7 +29,16 @@ describe("write-cli-startup-metadata", () => {
|
||||
"utf8",
|
||||
);
|
||||
|
||||
await writeCliStartupMetadata({ distDir, outputPath, extensionsDir });
|
||||
await writeCliStartupMetadata({
|
||||
distDir,
|
||||
outputPath,
|
||||
extensionsDir,
|
||||
renderBundledRootHelpText: async () => {
|
||||
throw new Error("dist root help unavailable");
|
||||
},
|
||||
renderSourceRootHelpText: () => "Usage: openclaw\n",
|
||||
renderSourceBrowserHelpText: () => "Usage: openclaw browser\n",
|
||||
});
|
||||
|
||||
const written = JSON.parse(readFileSync(outputPath, "utf8")) as {
|
||||
browserHelpText: string;
|
||||
|
||||
Reference in New Issue
Block a user