Logs

2023-7-13 Less than 1 minute

# Default logs

By default, in a non-nodejs-enviroment, http-request-mock will print some necessary logs if a request is matched with a mock config item. The logs contain request information , response information and the matched mock item.

logs

# Editable

You can even edit the mock config dynamically with this logs.

logs

# Disable

The logs feature can be disabled.

import HttpRequetMock from 'http-request-mock';
HttpRequetMock.disableLog();
Last update: July 13, 2023 22:53