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,7 +1,7 @@
import { describe, it, expect, vi } from "vitest"
import type { Doc, Id } from "../convex/_generated/dataModel"
import { getById } from "../convex/machines"
import { getByIdHandler } from "../convex/machines"
const FIXED_NOW = 1_706_071_200_000
@ -65,8 +65,8 @@ describe("convex.machines.getById", () => {
})),
}
const ctx = { db } as unknown as Parameters<typeof getById>[0]
const result = await getById(ctx, { id: machine._id, includeMetadata: true })
const ctx = { db } as unknown as Parameters<typeof getByIdHandler>[0]
const result = await getByIdHandler(ctx, { id: machine._id, includeMetadata: true })
expect(result).toBeTruthy()
expect(result?.metrics).toBeTruthy()
@ -75,4 +75,3 @@ describe("convex.machines.getById", () => {
expect(result?.token).toBeTruthy()
})
})