You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but const userId = await getAuthUserId(ctx); call from inside a convex function being tested doesn't seem to return the correct userId created in the test.
The text was updated successfully, but these errors were encountered:
This is also failing for me, but it works when I run it in function caller on dashboard.
Also using convex auth.
This is kinda critical regarding testing. What am I doing wrong?
EDIT: I now notice this is a mocked environment, so things won't appear in the DB
I can do the following in my test:
but
const userId = await getAuthUserId(ctx);
call from inside a convex function being tested doesn't seem to return the correct userId created in the test.The text was updated successfully, but these errors were encountered: