mirror of
https://github.com/moltbot/moltbot.git
synced 2026-03-21 16:41:56 +00:00
fix(test): resolve upstream typing drift in feishu and cron suites
This commit is contained in:
@@ -34,6 +34,7 @@ let priorProxyEnv: Partial<Record<ProxyEnvKey, string | undefined>> = {};
|
||||
|
||||
const baseAccount: ResolvedFeishuAccount = {
|
||||
accountId: "main",
|
||||
selectionSource: "explicit",
|
||||
enabled: true,
|
||||
configured: true,
|
||||
appId: "app_123",
|
||||
|
||||
@@ -83,7 +83,15 @@ async function runSingleJobAndReadState(params: {
|
||||
}
|
||||
|
||||
function expectSuccessfulCronRun(
|
||||
updated: { state: { lastStatus?: string; lastRunStatus?: string } } | undefined,
|
||||
updated:
|
||||
| {
|
||||
state: {
|
||||
lastStatus?: string;
|
||||
lastRunStatus?: string;
|
||||
[key: string]: unknown;
|
||||
};
|
||||
}
|
||||
| undefined,
|
||||
) {
|
||||
expect(updated?.state.lastStatus).toBe("ok");
|
||||
expect(updated?.state.lastRunStatus).toBe("ok");
|
||||
|
||||
Reference in New Issue
Block a user