Mez
Mez3mo ago

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(),
}
});
// Mock the auth module
vi.mock("@convex-dev/auth/server", async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
getAuthUserId: vi.fn(),
}
});
1 Reply
convex-threads
convex-threads3mo ago
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. If this is a support question related question please create a post in #support-community. If not, carry on! Thanks

Did you find this page helpful?