// Simple debug test to verify prisma mock
// Use require to access the module (ESM imports have issues with mocks)
const { prisma } = require("@/lib/db");

describe("Debug prisma mock", () => {
  it("should have jest.fn() mocks", () => {
    console.log("prisma:", typeof prisma);
    console.log("prisma.users:", typeof prisma.users);
    console.log("prisma.users.findUnique:", typeof prisma.users?.findUnique);
    console.log("Is jest.fn:", jest.isMockFunction(prisma.users?.findUnique));

    // Log the actual object structure
    if (prisma.users) {
      console.log("prisma.users keys:", Object.keys(prisma.users));
    }

    expect(true).toBe(true);
  });
});
