mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-03 03:03:24 -04:00
fix: use proper LoadedConfig type in test mock
This commit is contained in:
@@ -804,13 +804,7 @@ function makeReactionListenerParams(overrides?: {
|
||||
guildEntries?: Record<string, DiscordGuildEntryResolved>;
|
||||
}) {
|
||||
return {
|
||||
cfg: {} as ReturnType<
|
||||
typeof import("./monitor/listeners.js").DiscordReactionListener extends {
|
||||
handle: (d: unknown, c: unknown) => unknown;
|
||||
}
|
||||
? never
|
||||
: never
|
||||
>,
|
||||
cfg: {} as ReturnType<typeof import("../config/config.js").loadConfig>,
|
||||
accountId: "acc-1",
|
||||
runtime: {} as import("../runtime.js").RuntimeEnv,
|
||||
botUserId: overrides?.botUserId ?? "bot-1",
|
||||
|
||||
Reference in New Issue
Block a user