|
2 | 2 |
|
3 | 3 | exports[`options should return errorMessage 1`] = `
|
4 | 4 | Object {
|
5 |
| - "after": "should be {Function} (https://webpack.js.org/configuration/dev-server/#devserver-after)", |
6 |
| - "allowedHosts": "should be {Array} (https://webpack.js.org/configuration/dev-server/#devserver-allowedhosts)", |
7 |
| - "before": "should be {Function} (https://webpack.js.org/configuration/dev-server/#devserver-before)", |
8 |
| - "bonjour": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserver-bonjour)", |
9 |
| - "ca": "should be {String|Buffer} (https://webpack.js.org/configuration/dev-server/#devserver-ca)", |
10 |
| - "cert": "should be {String|Buffer} (https://webpack.js.org/configuration/dev-server/#devserver-cert)", |
| 5 | + "after": "should be {Function} (https://webpack.js.org/configuration/dev-server/#devserverafter)", |
| 6 | + "allowedHosts": "should be {Array} (https://webpack.js.org/configuration/dev-server/#devserverallowedhosts)", |
| 7 | + "before": "should be {Function} (https://webpack.js.org/configuration/dev-server/#devserverbefore)", |
| 8 | + "bonjour": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverbonjour)", |
| 9 | + "ca": "should be {String|Buffer}", |
| 10 | + "cert": "should be {String|Buffer}", |
11 | 11 | "clientLogLevel": "should be {String} and equal to one of the allowed values
|
12 | 12 |
|
13 |
| - [ 'trace', 'debug', 'info', 'warn', 'error', 'silent' ] |
| 13 | + [ 'none', 'info', 'error', 'warning' ] |
14 | 14 |
|
15 |
| -(https://webpack.js.org/configuration/dev-server/#devserver-clientloglevel)", |
16 |
| - "compress": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserver-compress)", |
17 |
| - "contentBase": "should be {Array} (https://webpack.js.org/configuration/dev-server/#devserver-contentbase)", |
18 |
| - "disableHostCheck": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserver-disablehostcheck)", |
19 |
| - "features": "should be {Array} (https://webpack.js.org/configuration/dev-server/#devserver-features)", |
20 |
| - "filename": "should be {String|RegExp|Function} (https://webpack.js.org/configuration/dev-server/#devserver-filename-)", |
21 |
| - "headers": "should be {Object} (https://webpack.js.org/configuration/dev-server/#devserver-headers-)", |
22 |
| - "historyApiFallback": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserver-historyapifallback)", |
23 |
| - "host": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserver-host)", |
24 |
| - "hot": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserver-hot)", |
25 |
| - "hotOnly": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserver-hotonly)", |
26 |
| - "http2": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserver-http2)", |
27 |
| - "https": "should be {Object|Boolean} (https://webpack.js.org/configuration/dev-server/#devserver-https)", |
28 |
| - "index": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserver-index)", |
29 |
| - "injectClient": "should be {Array}", |
30 |
| - "injectHot": "should be {Array}", |
31 |
| - "inline": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserver-inline)", |
32 |
| - "key": "should be {String|Buffer} (https://webpack.js.org/configuration/dev-server/#devserver-key)", |
33 |
| - "lazy": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserver-lazy-)", |
34 |
| - "log": "should be {Function} (https://webpack.js.org/configuration/dev-server/#devserver-log)", |
| 15 | + (https://webpack.js.org/configuration/dev-server/#devserverclientloglevel)", |
| 16 | + "compress": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devservercompress)", |
| 17 | + "contentBase": "should be {Number|String|Array} (https://webpack.js.org/configuration/dev-server/#devservercontentbase)", |
| 18 | + "disableHostCheck": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverdisablehostcheck)", |
| 19 | + "features": "should be {Array}", |
| 20 | + "filename": "should be {String|RegExp|Function} (https://webpack.js.org/configuration/dev-server/#devserverfilename-)", |
| 21 | + "fs": "should be {Object} (https://github.com/webpack/webpack-dev-middleware#fs)", |
| 22 | + "headers": "should be {Object} (https://webpack.js.org/configuration/dev-server/#devserverheaders-)", |
| 23 | + "historyApiFallback": "should be {Boolean|Object} (https://webpack.js.org/configuration/dev-server/#devserverhistoryapifallback)", |
| 24 | + "host": "should be {String|Null} (https://webpack.js.org/configuration/dev-server/#devserverhost)", |
| 25 | + "hot": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverhot)", |
| 26 | + "hotOnly": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverhotonly)", |
| 27 | + "http2": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverhttp2)", |
| 28 | + "https": "should be {Object|Boolean} (https://webpack.js.org/configuration/dev-server/#devserverhttps)", |
| 29 | + "index": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserverindex)", |
| 30 | + "injectClient": "should be {Boolean|Function}", |
| 31 | + "injectHot": "should be {Boolean|Function}", |
| 32 | + "inline": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverinline)", |
| 33 | + "key": "should be {String|Buffer}", |
| 34 | + "lazy": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverlazy-)", |
| 35 | + "log": "should be {Function}", |
35 | 36 | "logLevel": "should be {String} and equal to one of the allowed values
|
36 | 37 |
|
37 |
| - [ 'trace', 'debug', 'info', 'warn', 'error', 'silent' ] |
| 38 | + [ 'info', 'warn', 'error', 'debug', 'trace', 'silent' ] |
38 | 39 |
|
39 |
| -(https://webpack.js.org/configuration/dev-server/#devserver-loglevel)", |
40 |
| - "logTime": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserver-logtime)", |
| 40 | + (https://github.com/webpack/webpack-dev-middleware#loglevel)", |
| 41 | + "logTime": "should be {Boolean} (https://github.com/webpack/webpack-dev-middleware#logtime)", |
41 | 42 | "mimeTypes": "should be {Object} (https://webpack.js.org/configuration/dev-server/#devservermimetypes-)",
|
42 |
| - "noInfo": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserver-noinfo-)", |
43 |
| - "open": "should be {String|Boolean} (https://webpack.js.org/configuration/dev-server/#devserver-open)", |
44 |
| - "openPage": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserver-openpage)", |
45 |
| - "overlay": "should be {Object|Boolean} (https://webpack.js.org/configuration/dev-server/#devserver-overlay)", |
46 |
| - "pfx": "should be {String|Buffer} (https://webpack.js.org/configuration/dev-server/#devserver-pfx)", |
47 |
| - "pfxPassphrase": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserver-pfxpassphrase)", |
48 |
| - "port": "should be {String|Number} (https://webpack.js.org/configuration/dev-server/#devserver-port)", |
49 |
| - "progress": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserver-progress-cli-only)", |
50 |
| - "proxy": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserver-hot)", |
51 |
| - "public": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserver-public)", |
52 |
| - "publicPath": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserver-publicpath-)", |
53 |
| - "quiet": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserver-quiet-)", |
54 |
| - "reporter": "should be {Function} (https://webpack.js.org/configuration/dev-server/#devserver-reporter)", |
55 |
| - "requestCert": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserver-requestcert)", |
| 43 | + "noInfo": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devservernoinfo-)", |
| 44 | + "open": "should be {String|Boolean} (https://webpack.js.org/configuration/dev-server/#devserveropen)", |
| 45 | + "openPage": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserveropenpage)", |
| 46 | + "overlay": "should be {Boolean|Object} (https://webpack.js.org/configuration/dev-server/#devserveroverlay)", |
| 47 | + "pfx": "should be {String|Buffer} (https://webpack.js.org/configuration/dev-server/#devserverpfx)", |
| 48 | + "pfxPassphrase": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserverpfxpassphrase)", |
| 49 | + "port": "should be {Number|String|Null} (https://webpack.js.org/configuration/dev-server/#devserverport)", |
| 50 | + "progress": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverprogress---cli-only)", |
| 51 | + "proxy": "should be {Object|Array} (https://webpack.js.org/configuration/dev-server/#devserverproxy)", |
| 52 | + "public": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserverpublic)", |
| 53 | + "publicPath": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserverpublicpath-)", |
| 54 | + "quiet": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverquiet-)", |
| 55 | + "reporter": "should be {Function} (https://github.com/webpack/webpack-dev-middleware#reporter)", |
| 56 | + "requestCert": "should be {Boolean}", |
56 | 57 | "serveIndex": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverserveindex)",
|
57 |
| - "serverSideRender": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserver-serversiderender)", |
58 |
| - "setup": "should be {Function} (https://webpack.js.org/configuration/dev-server/#devserver-setup)", |
59 |
| - "sockPath": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserver-sockPath)", |
60 |
| - "sockPort": "should be {Array}", |
61 |
| - "socket": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserver-socket)", |
62 |
| - "staticOptions": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserver-staticOptions)", |
63 |
| - "stats": "should be {Boolean|Object|String} (https://webpack.js.org/configuration/dev-server/#devserver-stats-)", |
64 |
| - "useLocalIp": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserver-uselocalip)", |
65 |
| - "warn": "should be {Function} (https://webpack.js.org/configuration/dev-server/#devserver-warn)", |
66 |
| - "watchContentBase": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserver-watchcontentbase)", |
67 |
| - "watchOptions": "should be {Object} (https://webpack.js.org/configuration/dev-server/#devserver-watchoptions)", |
68 |
| - "writeToDisk": "should be {Boolean|Function} (https://github.com/webpack/webpack-dev-middleware#writetodisk)", |
| 58 | + "serverSideRender": "should be {Boolean} (https://github.com/webpack/webpack-dev-middleware#serversiderender)", |
| 59 | + "setup": "should be {Function} (https://webpack.js.org/configuration/dev-server/#devserversetup)", |
| 60 | + "sockPath": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserversockpath)", |
| 61 | + "sockPort": "should be {Number|String|Null}", |
| 62 | + "socket": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserversocket)", |
| 63 | + "staticOptions": "should be {Object} (https://webpack.js.org/configuration/dev-server/#devserverstaticoptions)", |
| 64 | + "stats": "should be {Object|Boolean} (https://webpack.js.org/configuration/dev-server/#devserverstats-)", |
| 65 | + "useLocalIp": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserveruselocalip)", |
| 66 | + "warn": "should be {Function}", |
| 67 | + "watchContentBase": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverwatchcontentbase)", |
| 68 | + "watchOptions": "should be {Object} (https://webpack.js.org/configuration/dev-server/#devserverwatchoptions-)", |
| 69 | + "writeToDisk": "should be {Boolean|Function} (https://webpack.js.org/configuration/dev-server/#devserverwritetodisk-)", |
69 | 70 | }
|
70 | 71 | `;
|
71 | 72 |
|
@@ -161,6 +162,9 @@ Object {
|
161 | 162 | },
|
162 | 163 | ],
|
163 | 164 | },
|
| 165 | + "fs": Object { |
| 166 | + "type": "object", |
| 167 | + }, |
164 | 168 | "headers": Object {
|
165 | 169 | "type": "object",
|
166 | 170 | },
|
|
0 commit comments