usermez's Thread

not sure if its the right approach but I ended up mocking that module like so:
// Mock the auth module
vi.mock("@convex-dev/auth/server", async (importOriginal) => {
  const actual = await importOriginal()
  return {
    ...actual,
    getAuthUserId: vi.fn(),
  }
});
Was this page helpful?