how to mock two tables?
hi! i currently have the following snippet
what happens if
createUserProfile
so happen to call 2 DBs? can i do something like
getting an error when i try it 😅4 Replies
also typescript didnt like my
ctx
for missing the schedule, storage, and bunch of other funcs in db . i have to ts-ignore itwhat happens if createUserProfile so happen to call 2 DBs? can i do something likeHey @winsoroaks, I don't understand this question. What is the concern?
sorry, lemme try again. is it possible to mock two different docs / dbs? im trying to do
but i didnt seem to quite get them correct. my function that im trying to test looks like this
im not sure which part of the mocking i've messed up 😦 can u pls help me out?
oh looks like i fixed it by doing
Btw we call db1 and db2 "tables" in the Convex lingo.