Update Prisma and harden tests

This commit is contained in:
Esdras Renan 2025-11-08 00:28:52 -03:00
parent a2f9d4bd1a
commit d8eb38fe52
17 changed files with 171 additions and 119 deletions

View file

@ -1,10 +1,10 @@
import { describe, expect, it, vi } from "bun:test"
import { buildCommentAuthorSummary } from "../convex/tickets"
import type { Doc, Id } from "../convex/_generated/dataModel"
import type { Doc, Id, TableNames } from "../convex/_generated/dataModel"
function makeId<TableName extends string>(value: string) {
return value as unknown as Id<TableName>
function makeId<TableName extends TableNames>(value: string) {
return value as Id<TableName>
}
function makeComment(overrides: Partial<Doc<"ticketComments">> = {}) {