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

feat(adapter-node-http): Use nock under the hood instead of custom implementation #166

Merged
merged 11 commits into from
Jan 29, 2019

Conversation

offirgolan
Copy link
Collaborator

@offirgolan offirgolan commented Jan 25, 2019

The reasoning behind this drastic change in implementation is that although we were able to override request methods once it was created, we did not take into account the socket creation that was setup in the initialization of the ClientRequest. To be able to modify that logic, we would have to mock out the entire ClientRequest class which nock already does and does it well.

@dustinsoftware
Copy link
Contributor

@offirgolan would you mind publishing the latest changes on master? I'd like to beta test this unmerged PR but am having dependency issues since the adapter logic changed in @pollyjs/adapter.. (or could you publish this PR as an alpha?)

@offirgolan offirgolan merged commit 62374f4 into master Jan 29, 2019
@offirgolan offirgolan deleted the nock branch January 29, 2019 04:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants