fix(ci): tighten test typing for browser and cron cli

This commit is contained in:
Peter Steinberger
2026-02-19 15:29:57 +00:00
parent 018370e827
commit 30e36c30d4
2 changed files with 8 additions and 1 deletions

View File

@@ -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: [],

View File

@@ -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 };
};