


























@@ -172,7 +172,7 @@ describe("group runtime loading", () => {
172172).toBe(false);
173173});
174174175-it("loads the group runtime only when requireMention resolution needs it", async () => {
175+it("resolves requireMention through runtime and Discord fallback paths", async () => {
176176vi.resetModules();
177177const groupsRuntimeLoads = vi.fn();
178178vi.doMock("./groups.runtime.js", () => {
@@ -209,16 +209,6 @@ describe("group runtime loading", () => {
209209}),
210210).resolves.toBe(false);
211211expect(groupsRuntimeLoads).toHaveBeenCalled();
212-vi.doUnmock("./groups.runtime.js");
213-});
214-215-it("honors Discord guild channel requireMention fallback when runtime plugin is unavailable", async () => {
216-vi.resetModules();
217-vi.doMock("./groups.runtime.js", () => ({
218-getChannelPlugin: () => undefined,
219-normalizeChannelId: (channelId?: string) => channelId?.trim().toLowerCase(),
220-}));
221-const isolatedGroups = await import("./groups.js");
222212223213await expect(
224214isolatedGroups.resolveGroupRequireMention({
@@ -250,16 +240,6 @@ describe("group runtime loading", () => {
250240},
251241}),
252242).resolves.toBe(false);
253-vi.doUnmock("./groups.runtime.js");
254-});
255-256-it("honors account-scoped Discord guild requireMention fallback", async () => {
257-vi.resetModules();
258-vi.doMock("./groups.runtime.js", () => ({
259-getChannelPlugin: () => undefined,
260-normalizeChannelId: (channelId?: string) => channelId?.trim().toLowerCase(),
261-}));
262-const isolatedGroups = await import("./groups.js");
263243264244await expect(
265245isolatedGroups.resolveGroupRequireMention({
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。