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
Unable to return an array as valid JSON response #1228
Comments
What does |
Hi, @RichardLitt, I think there is a breaking change when upgrading from 9.6.1 to 10.0.0 here is the result and a simplified test - tested with Node.js In If this is intentional then should we update the change log and the doc?
|
I don't think that this was intentional. I think the best thing to do at this point would be to start a PR with tests for this, and then we can implement your suggested fix and see if that solves the problem. What do you think about that? Would you like to help? |
I note the same issue with version 10.0.0 in my instance it returns the last element in the array. |
@RichardLitt Yes, I can take a look at it Update: I think this issue was introduced when we change the logic in PR https://github.com/nock/nock/pull/1203/files I honestly don't know what is desired behavior for it. But in my opinion, the first argument for |
We could really use some help with getting that test passing |
that sounds reasonable to me |
Seems like issue #1208 is related to this one. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We try to do our best, but nock is maintained by volunteers and there is only so much we can do at a time. Thank you for your contributions. |
See also #1222 (comment) which is proposing a change to this behavior which will be made in #1520. |
What is the expected behavior?
What is the actual behavior?
Possible solution
How to reproduce the issue
Please refer to the reduced test case provided above.
Does the bug have a test case?
No
Versions
The text was updated successfully, but these errors were encountered: