0.3.2 • Published 3 years ago

request-har-capture v0.3.2

Weekly downloads
4
License
MIT
Repository
github
Last release
3 years ago

request-har-capture

Wrapper for request module that saves all traffic as a HAR file, useful for auto mocking a client

Build Status Coverage Status Dependency Status devDependency Status js-semistandard-style

Use this module as drop-in replacement for https://www.npmjs.com/package/request-promise

All traffic can be saved by calling

request.saveHar('traffic.har');

Collected traffic can be cleared by calling

request.clear();

This is especially useful for capturing all test traffic from your back-end test suite, for doing auto mocking in your front-end test suite. See this project for an example: https://github.com/larsthorup/http-auto-mock-demo

Blog post about this technique: http://www.zealake.com/2015/01/05/unit-test-your-service-integration-layer/

0.3.2

3 years ago

0.3.1

4 years ago

0.3.0

8 years ago

0.2.0

8 years ago

0.1.0

8 years ago