Update Prisma and harden tests
This commit is contained in:
parent
a2f9d4bd1a
commit
d8eb38fe52
17 changed files with 171 additions and 119 deletions
|
|
@ -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">> = {}) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue