-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathValidation.test.js.snap
More file actions
40 lines (36 loc) · 2.5 KB
/
Validation.test.js.snap
File metadata and controls
40 lines (36 loc) · 2.5 KB
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
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Validation validation should fail validation for invalid \`hot\` configuration 1`] = `
"Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
- configuration.hot should be one of these:
boolean | \\"only\\"
Details:
* configuration.hot should be a boolean.
* configuration.hot should be \\"only\\"."
`;
exports[`Validation validation should fail validation for invalid \`injectHot\` configuration 1`] = `
"Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
- configuration.injectHot should be one of these:
boolean | [string, ...] (should not have fewer than 1 item) | function
Details:
* configuration.injectHot should be a boolean.
* configuration.injectHot should be an array:
[string, ...] (should not have fewer than 1 item)
* configuration.injectHot should be an instance of function."
`;
exports[`Validation validation should fail validation for invalid \`static\` configuration 1`] = `
"Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
- configuration.static should be one of these:
boolean | non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? } | [non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] (should not have fewer than 1 item)
Details:
* configuration.static[0] should be one of these:
non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }
Details:
* configuration.static[0] should be a non-empty string.
* configuration.static[0] should be an object:
object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }"
`;
exports[`Validation validation should fail validation for no additional properties 1`] = `
"Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
- configuration has an unknown property 'additional'. These properties are valid:
object { bonjour?, client?, compress?, dev?, firewall?, headers?, historyApiFallback?, host?, hot?, http2?, https?, injectClient?, injectHot?, liveReload?, onAfterSetupMiddleware?, onBeforeSetupMiddleware?, onListening?, open?, openPage?, port?, proxy?, public?, setupExitSignals?, static?, stdin?, transportMode?, useLocalIp? }"
`;