Skip to content

Add cleanMocks to MockClient and MockPool #4176

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

Merged
merged 3 commits into from
Jun 25, 2025

Conversation

DemianParkhomenko
Copy link
Contributor

@DemianParkhomenko DemianParkhomenko commented Apr 23, 2025

This relates to...

closes: #3737

Rationale

Changes

Add cleanMocks method to Interceptable interface and implement it in MockPool and MockClient.
Add tests, typings, docs.

Features

add cleanMocks method

Bug Fixes

Breaking Changes and Deprecations

Status

Copy link
Member

@gurgunday gurgunday left a comment

Choose a reason for hiding this comment

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

lgtm

@DemianParkhomenko
Copy link
Contributor Author

@metcoder95 The failing tests seem unrelated to this PR. Can we merge?

@metcoder95 metcoder95 requested a review from mcollina May 13, 2025 06:31
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

A couple of nits

DemianParkhomenko and others added 2 commits May 14, 2025 01:44
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@mcollina mcollina merged commit b1f45cf into nodejs:main Jun 25, 2025
29 of 31 checks passed
@github-actions github-actions bot mentioned this pull request Jun 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add an ability to clear pending interceptors in MockAgent
4 participants