Logs

2024-9-7 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: September 7, 2024 15:58