Describe the bug
Moctokit does not work with Node 18. All .reply responses return the same result to Octokit. Setting the status as 200 and 404 do not differ the mock response`
I believe this is due to Node 18 using a new http client named undici for fetch API support
Looking at the code for Moctokit it uses nock, which has an open issue for undici support
To Reproduce
Use Moctokit with Node 18 and @octokit/core v5.0.0
Expected behavior
Proper mock responses are returned.
Additional context
I don't actually expect this to be solved until Nock is updated but an incompatibility note in the README would be nice.
Describe the bug
Moctokitdoes not work with Node 18. All.replyresponses return the same result to Octokit. Setting thestatusas200and404do not differ the mock response`I believe this is due to Node 18 using a new http client named undici for
fetchAPI supportLooking at the code for Moctokit it uses
nock, which has an open issue for undici supportTo Reproduce
Use
Moctokitwith Node 18 and@octokit/corev5.0.0Expected behavior
Proper mock responses are returned.
Additional context
I don't actually expect this to be solved until Nock is updated but an incompatibility note in the
READMEwould be nice.