-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmocks.config.js
72 lines (71 loc) · 2.02 KB
/
mocks.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// For a detailed explanation regarding each configuration property, visit:
// https://mocks-server.org/docs/configuration-options
// https://mocks-server.org/docs/configuration-methods
module.exports = {
// Log level. Can be one of silly, debug, verbose, info, warn or error
//log: "info",
// Array of RouteHandlers to be added
//routesHandlers: [],
config: {
// Allow unknown arguments
//allowUnknownArguments: false,
},
plugins: {
// Plugins to be registered
//register: [],
proxyRoutesHandler: {
},
adminApi: {
// Root path for admin routes
//path: "/admin",
},
inquirerCli: {
// Start interactive CLI plugin or not
//enabled: true,
// Render emojis or not
//emojis: true,
},
},
mocks: {
// Selected mock
selected: "base",
// Global delay to apply to routes
//delay: 0,
},
server: {
// Port number for the server to be listening at
//port: 3100,
// Host for the server
//host: "0.0.0.0",
cors: {
// Use CORS middleware or not
//enabled: true,
// Options for the CORS middleware. Further information at https://github.com/expressjs/cors#configuration-options
//options: {"preflightContinue":false},
},
jsonBodyParser: {
// Use json body-parser middleware or not
//enabled: true,
// Options for the json body-parser middleware. Further information at https://github.com/expressjs/body-parser
//options: {},
},
urlEncodedBodyParser: {
// Use urlencoded body-parser middleware or not
//enabled: true,
// Options for the urlencoded body-parser middleware. Further information at https://github.com/expressjs/body-parser
//options: {"extended":true},
},
},
files: {
// Define folder from where to load mocks
//path: "mocks",
// Enable/disable files watcher
//watch: true,
babelRegister: {
// Load @babel/register
//enabled: false,
// Options for @babel/register
//options: {},
},
},
};