#142
New
node request interceptor
Reported by Volkan Ozcelik on JavaScript: from Zero to Hero · 14/07/2018 05:01:57
- Assigned to:
- Volkan Ozcelik
- Priority:
- Normal
- Status:
- New
- Category:
- Lessons
- Version:
- None
This code sample, if included anywhere in any module required by a Node js process, will intercept all requests made via the request library and send the
for tests especially.
also note that that’s how jest mocks work too.
Attachments
No attachment has been uploaded, yet.
Loading comments...