fix: finish 2.9.0 plugin moves and get every check green

This commit is contained in:
LukeGus committed 2026-09-24 23:35:18 -05:00
1 parent 8c1e02af89
commit 6489b62ece
335 files changed
+29878 -17749

No files matched your search

@@ -395,3 +395,22 @@ describe("service registry", () => {
expect(error.message).toContain("provider");
});
});
describe("provider clashes", () => {
it("refuses a second plugin answering to the same service and name", async () => {
register();
expect(() => register({ pluginId: "other-plugin" })).toThrow(
/already provided by provider-plugin/,
);
const { listRegistrationConflicts } =
await import("../../plugins/conflicts.js");
expect(listRegistrationConflicts()).toContainEqual(
expect.objectContaining({ kind: "service", pluginId: "other-plugin" }),
);
});
it("lets a plugin replace its own registration", () => {
register();
expect(() => register()).not.toThrow();
});
});