Skip to content

Conversation

@Nicolapps
Copy link
Member

Fixes #854

@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 20, 2025

Open in StackBlitz

npm i https://pkg.pr.new/get-convex/convex-helpers@855

commit: 52566b7


test("zCustomQuery with no args", async () => {
const t = convexTest(schema, modules);
const response = await t.query(testApi.testQueryNoArgs);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

another way we can test the behavior of it

Suggested change
const response = await t.query(testApi.testQueryNoArgs);
const response = await t.run((ctx) => ctx.runQuery(testApi.testQueryNoArgs));

Since ctx.runQuery also expects no args to make args optional

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I did it in c76ca21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Zod v3 to v4 zCustomQuery migration breaking useQuery empty parameters

3 participants