@@ -29,7 +29,7 @@ const unrelated = {
|
||||
},
|
||||
},
|
||||
};
|
||||
const names = ["agents", "multi-work", "quota"];
|
||||
const names = ["agents", "multi-work", "quota", "optchat"];
|
||||
const helper = new URL("../scripts/install.ts", import.meta.url);
|
||||
async function run(
|
||||
command: string[],
|
||||
@@ -94,6 +94,8 @@ for (const selection of [
|
||||
"agents,quota",
|
||||
"agents,multi-work",
|
||||
"agents,multi-work,quota",
|
||||
"optchat",
|
||||
"agents,multi-work,quota,optchat",
|
||||
]) {
|
||||
test(`installs valid subset ${selection}, preserving unrelated config and MCP`, async () => {
|
||||
const f = await fixture();
|
||||
@@ -255,7 +257,10 @@ test("replaces the legacy monolith without duplicates and retains Agents options
|
||||
const result = await contents(f.config);
|
||||
expect(result.plugins.map((entry: { package: string }) => entry.package)).toEqual([
|
||||
"before",
|
||||
...names.map((name) => `./plugins/stanp-opencode/${name}`),
|
||||
// The monolith never had Optchat, so upgrading it does not add Optchat.
|
||||
...names
|
||||
.filter((name) => name !== "optchat")
|
||||
.map((name) => `./plugins/stanp-opencode/${name}`),
|
||||
"after",
|
||||
]);
|
||||
expect(result.plugins[1].options.lunaPriority).toBe(false);
|
||||
|
||||
Reference in New Issue
Block a user