Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: trpc mutation procedures do not receive arguments from test. #132

Open
1 task
smoove opened this issue May 19, 2023 · 3 comments
Open
1 task

[Bug]: trpc mutation procedures do not receive arguments from test. #132

smoove opened this issue May 19, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@smoove
Copy link

smoove commented May 19, 2023

What happened?

I have this test:

tests:
  - name: myprocedure
    http:
      url: ${{env.url}}
      headers:
        x-api-key: ${{secrets.apikey}}
      trpc:
        mutation:
          subrouter.myprocedure:
            some: 'asdf'
            arguments: 11234
      check:
        status: /^20/

Running it results in the following error:

code: "invalid_type",
expected: "object"
received: "undefined"
path: []

It seems like the procedure does not receive the arguments defined in the test.

What did you expect to happen?

I expect the test to pass on the arguments to the trpc procedure.

Version

2.6.6

Environment

v16.18.1

How can we reproduce this bug?

No response

Relevant log output

No response

Would you be interested in working on a bugfix for this issue?

  • Yes! Assign me
@smoove smoove added the bug Something isn't working label May 19, 2023
@mishushakov
Copy link
Member

Are you using the T3 stack, by chance?

@smoove
Copy link
Author

smoove commented May 24, 2023

Are you using the T3 stack, by chance?

Nope, it's a simple express app.
I can provide more details, just tell me what you need.

@sebastianwis
Copy link
Contributor

Hi Janek @smoove
Thank you for your contribution here!
It would be amazing to welcome you to our Discord if you haven't joined it yet:
https://discord.com/invite/KqJJzJ3BTu
This is where we keep users up to date with updates, features and bug resolutions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants