```import { prisma } from '../../../prisma/prisma'...
# orm-help
m
Copy code
import { prisma } from '../../../prisma/prisma';

const mock = mockDeep<typeof prisma>();
jest.mock('../../../prisma/prisma', () => mock);

it('...', () => {
  mock.user.count.mockResolvedValue(2);
  fn()
})
and the function call does this:
Copy code
const userCount = await prisma.user.count({ where: ... });