queryWithUser is not a function.
(not urgent)
hi team! im working on some unit tests. the convex-test library is awesome and fun! however, im running into a weird scenario (not related to the lib perhaps).
and when i run vitest, im getting
but when i hard code the LIMIT to be 100, it works. any idea what's wrong? 🙏
1 Reply
That's a circular import, and I guess Vite doesn't like it (browser probably wouldn't like it either, since those are
const
s).
usage.ts
imports queryWithUser from users.ts
users.ts
import LIMIT from usage.ts
break the cycle