-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
Copy pathValidation.test.js.snap
47 lines (42 loc) · 2.79 KB
/
Validation.test.js.snap
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
// 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 \`needClientEntry\` configuration 1`] = `
"Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
- configuration.client.needClientEntry should be one of these:
boolean | function
Details:
* configuration.client.needClientEntry should be a boolean.
* configuration.client.needClientEntry should be an instance of function."
`;
exports[`Validation validation should fail validation for invalid \`needHotEntry\` configuration 1`] = `
"Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
- configuration.client.needHotEntry should be one of these:
boolean | function
Details:
* configuration.client.needHotEntry should be a boolean.
* configuration.client.needHotEntry 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?, liveReload?, onAfterSetupMiddleware?, onBeforeSetupMiddleware?, onListening?, open?, openPage?, port?, proxy?, public?, setupExitSignals?, static?, transportMode? }"
`;