Function getAdminServer

  • Get a Mockttp admin server, which can be used with a Mockttp remote client to create & manage Mockttp instances either from remote machines or from local environments that lack necessary capabilities, e.g. to use Mockttp from inside a browser.

    This function exists so you can set up these servers programmatically, but for most usage you can just run your tests via the mockttp binary, which will automatically start and stop an admin server for you:

    mockttp -c <your test command>
    

    Parameters

    Returns MockttpAdminServer