mirror of
https://github.com/moltbot/moltbot.git
synced 2026-03-08 06:54:24 +00:00
fix(ci): tighten test typing for browser and cron cli
This commit is contained in:
@@ -58,6 +58,12 @@ vi.mock("../runtime.js", () => ({
|
||||
|
||||
let registerBrowserInspectCommands: typeof import("./browser-cli-inspect.js").registerBrowserInspectCommands;
|
||||
|
||||
type SnapshotDefaultsCase = {
|
||||
label: string;
|
||||
args: string[];
|
||||
expectMode: "efficient" | undefined;
|
||||
};
|
||||
|
||||
describe("browser cli snapshot defaults", () => {
|
||||
const runSnapshot = async (args: string[]) => {
|
||||
const program = new Command();
|
||||
@@ -78,7 +84,7 @@ describe("browser cli snapshot defaults", () => {
|
||||
configMocks.loadConfig.mockReturnValue({ browser: {} });
|
||||
});
|
||||
|
||||
it.each([
|
||||
it.each<SnapshotDefaultsCase>([
|
||||
{
|
||||
label: "uses config snapshot defaults when mode is not provided",
|
||||
args: [],
|
||||
|
||||
@@ -37,6 +37,7 @@ const { registerCronCli } = await import("./cron-cli.js");
|
||||
|
||||
type CronUpdatePatch = {
|
||||
patch?: {
|
||||
schedule?: { kind?: string; expr?: string; tz?: string; staggerMs?: number };
|
||||
payload?: { message?: string; model?: string; thinking?: string };
|
||||
delivery?: { mode?: string; channel?: string; to?: string; bestEffort?: boolean };
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user