chore: expand reports coverage and upgrade next

This commit is contained in:
codex-bot 2025-10-31 17:27:51 -03:00
parent 2fb587b01d
commit 8b82284e8c
21 changed files with 2952 additions and 2713 deletions

View file

@ -1,6 +1,6 @@
import { afterAll, beforeAll, describe, expect, it, vi } from "vitest"
import { updatePersona } from "../convex/machines"
import { updatePersonaHandler } from "../convex/machines"
import type { Doc, Id } from "../convex/_generated/dataModel"
const FIXED_NOW = 1_706_071_200_000
@ -63,9 +63,9 @@ describe("convex.machines.updatePersona", () => {
return null
})
const ctx = { db: { get, patch } } as unknown as Parameters<typeof updatePersona>[0]
const ctx = { db: { get, patch } } as unknown as Parameters<typeof updatePersonaHandler>[0]
const result = await updatePersona(ctx, { machineId: machine._id, persona: "" })
const result = await updatePersonaHandler(ctx, { machineId: machine._id, persona: "" })
expect(result).toEqual({ ok: true, persona: null })
expect(patch).toHaveBeenCalledTimes(1)
@ -92,10 +92,10 @@ describe("convex.machines.updatePersona", () => {
return null
})
const ctx = { db: { get, patch } } as unknown as Parameters<typeof updatePersona>[0]
const ctx = { db: { get, patch } } as unknown as Parameters<typeof updatePersonaHandler>[0]
await expect(
updatePersona(ctx, {
updatePersonaHandler(ctx, {
machineId: machine._id,
persona: "collaborator",
assignedUserId: missingUserId,