mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 08:10:44 +00:00
fix(release): reject blank plugin runtime entries
This commit is contained in:
@@ -69,4 +69,22 @@ describe("collectPluginNpmPublishedRuntimeErrors", () => {
|
||||
"@openclaw/acpx@2026.5.3 package.json openclaw.runtimeExtensions length (1) must match openclaw.extensions length (2)",
|
||||
]);
|
||||
});
|
||||
|
||||
it("flags blank runtimeExtensions entries instead of falling back to inferred outputs", () => {
|
||||
expect(
|
||||
collectPluginNpmPublishedRuntimeErrors({
|
||||
packageJson: {
|
||||
name: "@openclaw/whatsapp",
|
||||
version: "2026.5.3",
|
||||
openclaw: {
|
||||
extensions: ["./src/index.ts"],
|
||||
runtimeExtensions: [" "],
|
||||
},
|
||||
},
|
||||
files: ["package.json", "src/index.ts", "dist/index.js"],
|
||||
}),
|
||||
).toEqual([
|
||||
"@openclaw/whatsapp@2026.5.3 package.json openclaw.runtimeExtensions[0] must be a non-empty string",
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user