import testMatrix from './_matrix'
// @ts-ignore
import type { PrismaClient } from './generated/prisma/client'
declare let prisma: PrismaClient
// https://github.com/prisma/prisma/issues/12572
testMatrix.setupTestSuite(() => {
test('should have equal dates on record creation for @default(now) and @updatedAt', async () => {
const created = await prisma.user.create({ data: {} })
const createdAt = new Date(created.createdAt)
const updatedAt = new Date(created.updatedAt)
expect(createdAt.getDate()).toEqual(updatedAt.getDate())
})
})
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/prisma/prisma'
If you have feedback or need assistance with the MCP directory API, please join our Discord server