// Debug test to verify module resolution
describe("Debug module resolution", () => {
  it("should log require.resolve result", () => {
    // Try to understand what path @/lib/db resolves to
    console.log("__dirname:", __dirname);

    // Import the mock directly to verify it works
    const dbMock = require("../../__mocks__/lib/db.js");
    console.log(
      "Direct mock import - Is jest.fn:",
      jest.isMockFunction(dbMock.prisma?.users?.findUnique),
    );
    console.log("Direct mock keys:", Object.keys(dbMock.prisma?.users || {}));

    // Now import via the alias
    const dbAlias = require("@/lib/db");
    console.log(
      "Via @/lib/db - Is jest.fn:",
      jest.isMockFunction(dbAlias.prisma?.users?.findUnique),
    );
    console.log("Via @/lib/db keys:", Object.keys(dbAlias.prisma?.users || {}));

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