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.
const metadata = await ctx.db.system.get(s.storageId as Id<"_storage">)
if (!metadata) throw new ConvexError("not found")
size += metadata.size

is there a way to handle this from the convex-test package? thanks!
Was this page helpful?