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

fix: nock.removeInterceptor can remove the wrong Intercept #2497

Merged
merged 4 commits into from
Jul 13, 2023

Conversation

mikicho
Copy link
Contributor

@mikicho mikicho commented Jul 13, 2023

If you agree with the general solution, I'll add a proper test and fix the current tests.

Fix #2418

I'll add a proper test if you accept the general solution.
Copy link
Member

@gr2m gr2m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change looks good, thank you for opening the PR. As long as no other tests are failing and you add a test case for this change, we are good to go. Bonus points if you could push the test changes first to show the CI is failing, and then push your fix to make it green again, that really helps to review pull requests more quickly

@mikicho
Copy link
Contributor Author

mikicho commented Jul 13, 2023

@gr2m
failing: 120ee32
fix: 458dfeb

I'm just not sure how elegant/readable the ternary in the if

Copy link
Member

@gr2m gr2m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, this is great 👍🏼

@gr2m gr2m changed the title Fix nock.removeInterceptor can remove the wrong Intercept fix: nock.removeInterceptor can remove the wrong Intercept Jul 13, 2023
@gr2m gr2m merged commit 92de0de into nock:main Jul 13, 2023
19 checks passed
@mikicho mikicho deleted the patch-1 branch July 13, 2023 20:34
@github-actions
Copy link

🎉 This PR is included in version 13.3.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nock.removeInterceptor can remove the wrong Intercept
2 participants