fix: use proper LoadedConfig type in test mock

This commit is contained in:
Marcus Castro
2026-02-06 10:46:32 -03:00
committed by Shadow
parent 888f7dbbd8
commit ea3fb9570c

View File

@@ -804,13 +804,7 @@ function makeReactionListenerParams(overrides?: {
guildEntries?: Record<string, DiscordGuildEntryResolved>; guildEntries?: Record<string, DiscordGuildEntryResolved>;
}) { }) {
return { return {
cfg: {} as ReturnType< cfg: {} as ReturnType<typeof import("../config/config.js").loadConfig>,
typeof import("./monitor/listeners.js").DiscordReactionListener extends {
handle: (d: unknown, c: unknown) => unknown;
}
? never
: never
>,
accountId: "acc-1", accountId: "acc-1",
runtime: {} as import("../runtime.js").RuntimeEnv, runtime: {} as import("../runtime.js").RuntimeEnv,
botUserId: overrides?.botUserId ?? "bot-1", botUserId: overrides?.botUserId ?? "bot-1",