Configuration file
#
OptionsConfiguration and options can be defined creating a mocks-server.config.js
file in the root folder of your project (a custom file path can be defined using the configFile
low level configuration property).
The first level properties returned by this configuration file will be interpreted as low level configuration properties.
Properties returned inside the options
object will be considered as main options or plugin extra options.
#
Formats#
ObjectThe configuration file can export an object containing configuration and options:
#
FunctionThe configuration file can export a function. The function receives previously defined configuration (from previous config methods) that can be modified.
#
AsyncThe configuration file can also export an async function, or a function returning a Promise: