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

Ability to stop persisting a persistent nock #438

Closed
djmitche opened this issue Jan 6, 2016 · 2 comments
Closed

Ability to stop persisting a persistent nock #438

djmitche opened this issue Jan 6, 2016 · 2 comments

Comments

@djmitche
Copy link

djmitche commented Jan 6, 2016

n = nock('http://example.com').persist().get('/').reply(200, 'ok');
# .. do some tests ..
n.persist(false)

I can use nock.cleanAll, but I'm writing a library that fakes out a particular service using nock, and it seems rude for my library to rip out all interceptors, and not just the interceptors it installed..

@solsend2l
Copy link

Interesting! See my related issue #447

@lock
Copy link

lock bot commented Sep 13, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue and add a reference to this one if it’s related. Thank you!

@lock lock bot locked as resolved and limited conversation to collaborators Sep 13, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants