mockyeah

A powerful service mocking, recording, and playback utility.

Notice: These docs are for mockyeah 1.x & above. For legacy mockyeah 0.x, please see https://mockyeah.github.io/mockyeah/.

record() API @mockyeah/server

mockyeah.record([suite name])

suite name (String; required) Directory name to save service suites (i.e. ./mockyeah/[suite name]).

Configures mockyeah to proxy and suite service requests. Recorded responses will be written when you call recordStop. To use this feature, you can update the service addresses in your application to proxy through mockyeah. Here is an example of an address configured for recording:

http://localhost:[mockyeah port]/http://example.com/your/service/url

The above URL looks pretty crazy, but rest assured it works and eliminates the need for a system level proxy.


© 2020 mockyeah, Built with Gatsby