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
nockBack filteringPath not working with queries #1041
Comments
@amejiarosario the error message is currently rather confusing, see #1029 (comment) If you could create a minimal test case like https://runkit.com/gr2m/5a2b2a9b890d1b00120eada4, that’d be helpful for folks to help you. Even better, investigate the problem and send a PR. If you use nock at relevant projects at Cisco it would be great if you could get some time to help out maintain nock, it could really use an overhaul but I can’t do it myself :) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We try to do our best, but nock is maintained by volunteers and there is only so much we can do at a time. Thank you for your contributions. |
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! |
🎉 This issue has been resolved in version 10.0.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
I'm using the lastest nock
v9.1.5
. I have some API calls that add a timestamp at the end of it. e.g.example.com/path?timestamp=1515193247399&recvWindow=60000
.I'm try
filteringPath
to replace the real timestamp with a fixed one, so it can match the fixtures. However, it doesn't work.This is my setup
I'm saving the data with a fixed timestamp using the
afterRecord
:That is working fine. However, when I tried to transform the
path
it doesn't work:I can see in the terminal:
and it still fails:
I wonder:
filteringPath
is not working and I have to call directlytransformPathFunction
?The text was updated successfully, but these errors were encountered: