is there a way to mock the ctx.db.system?
hi team! one of my mutation checks for the image size and store them in my table.
is there a way to handle this from the convex-test package? thanks!
5 Replies
also the query does
can i somehow also mock the ctx.storage? or what's the best way to handle it?
or maybe i should do
in the functions?
Check out the example tests:
https://github.com/get-convex/convex-test/blob/main/convex/storage.test.ts
GitHub
convex-test/convex/storage.test.ts at main · get-convex/convex-test
Testing harness for pure-JS Convex tests. Contribute to get-convex/convex-test development by creating an account on GitHub.
got it. thanks!
weird i copied and pasted
and im getting
blob.arrayBuffer is not a function
What's your Node.js version?
lemme try upgrading
nvm fixed, i just had to do
in my config
sorry bout that. thanks!