You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got similar issue where I can't put { contentType: 'application/json' } in the third param.
just realized seems we need to add the options params in the superagent types repo. I just added here, feel free to add feedback that I required to do. This is the first time I try to update open source repo. not sure if I did it correctly.
I got similar issue where I can't put { contentType: 'application/json' } in the third param.
just realized seems we need to add the options params in the superagent types repo. I just added here, feel free to add feedback that I required to do. This is the first time I try to update open source repo. not sure if I did it correctly.
Describe the bug
Node.js version: 18.18.2
OS version: macOS Sonoma 14.4
Description:
When adding complex object to field() method, the documentation says to use it like this. #759
.field('complex_object', '{"attribute": "value"}', {contentType: 'application/json'})
With this solution, I got an error.
Expected 1-2 arguments, but got 3.ts(2554)
@types/supertest 6.0.2
supertest 7.0.0
typescript 5.4.5
Actual behavior
Expected behavior
Test success without an error.
Code to reproduce
Checklist
The text was updated successfully, but these errors were encountered: