Function getLocal

  • Get a Mockttp instance on the local machine.

    In most simple environments, you can call this method directly and immediately get a Mockttp instance and start mocking servers.

    In node, the mocked servers will run in process and require no further setup.

    In browsers this is an alias for getRemote. You'll need to start a Mockttp admin server outside your tests before calling this, which will create and manage your fake servers outside the browser.

    Parameters

    Returns Mockttp