|
1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
|
2 | 2 |
|
3 | 3 | exports[`validate options 1`] = `
|
4 |
| -"CSS Loader Invalid Options |
5 |
| -
|
6 |
| -options.url should be boolean |
7 |
| -options.url should pass \\"instanceof\\" keyword validation |
8 |
| -options.url should match some schema in anyOf |
9 |
| -" |
| 4 | +"Invalid options object. CSS Loader has been initialised using an options object that does not match the API schema. |
| 5 | + - options.url should be one of these: |
| 6 | + boolean | function |
| 7 | + -> Enables/Disables 'url'/'image-set' functions handling (https://github.com/webpack-contrib/css-loader#url). |
| 8 | + Details: |
| 9 | + * options.url should be a boolean. |
| 10 | + * options.url should be an instance of function." |
10 | 11 | `;
|
11 | 12 |
|
12 | 13 | exports[`validate options 2`] = `
|
13 |
| -"CSS Loader Invalid Options |
14 |
| -
|
15 |
| -options.import should be boolean |
16 |
| -options.import should pass \\"instanceof\\" keyword validation |
17 |
| -options.import should match some schema in anyOf |
18 |
| -" |
| 14 | +"Invalid options object. CSS Loader has been initialised using an options object that does not match the API schema. |
| 15 | + - options.import should be one of these: |
| 16 | + boolean | function |
| 17 | + -> Enables/Disables '@import' at-rules handling (https://github.com/webpack-contrib/css-loader#import). |
| 18 | + Details: |
| 19 | + * options.import should be a boolean. |
| 20 | + * options.import should be an instance of function." |
19 | 21 | `;
|
20 | 22 |
|
21 | 23 | exports[`validate options 3`] = `
|
22 |
| -"CSS Loader Invalid Options |
23 |
| -
|
24 |
| -options.modules should be boolean |
25 |
| -options.modules should be equal to one of the allowed values |
26 |
| -options.modules should be object |
27 |
| -options.modules should match some schema in anyOf |
28 |
| -" |
| 24 | +"Invalid options object. CSS Loader has been initialised using an options object that does not match the API schema. |
| 25 | + - options.modules should be one of these: |
| 26 | + boolean | \\"local\\" | \\"global\\" | object { mode?, localIdentName?, localIdentRegExp?, context?, hashPrefix?, getLocalIdent? } |
| 27 | + -> Enables/Disables CSS Modules and their configuration (https://github.com/webpack-contrib/css-loader#modules). |
| 28 | + Details: |
| 29 | + * options.modules should be a boolean. |
| 30 | + * options.modules should be one of these: |
| 31 | + \\"local\\" | \\"global\\" |
| 32 | + * options.modules should be an object: |
| 33 | + object { mode?, localIdentName?, localIdentRegExp?, context?, hashPrefix?, getLocalIdent? }" |
29 | 34 | `;
|
30 | 35 |
|
31 | 36 | exports[`validate options 4`] = `
|
32 |
| -"CSS Loader Invalid Options |
33 |
| -
|
34 |
| -options.modules should be boolean |
35 |
| -options.modules should be equal to one of the allowed values |
36 |
| -options.modules should be object |
37 |
| -options.modules should match some schema in anyOf |
38 |
| -" |
| 37 | +"Invalid options object. CSS Loader has been initialised using an options object that does not match the API schema. |
| 38 | + - options.modules should be one of these: |
| 39 | + boolean | \\"local\\" | \\"global\\" | object { mode?, localIdentName?, localIdentRegExp?, context?, hashPrefix?, getLocalIdent? } |
| 40 | + -> Enables/Disables CSS Modules and their configuration (https://github.com/webpack-contrib/css-loader#modules). |
| 41 | + Details: |
| 42 | + * options.modules should be a boolean. |
| 43 | + * options.modules should be one of these: |
| 44 | + \\"local\\" | \\"global\\" |
| 45 | + * options.modules should be an object: |
| 46 | + object { mode?, localIdentName?, localIdentRegExp?, context?, hashPrefix?, getLocalIdent? }" |
39 | 47 | `;
|
40 | 48 |
|
41 | 49 | exports[`validate options 5`] = `
|
42 |
| -"CSS Loader Invalid Options |
43 |
| -
|
44 |
| -options.modules should be boolean |
45 |
| -options.modules should be equal to one of the allowed values |
46 |
| -options.modules should be object |
47 |
| -options.modules should match some schema in anyOf |
48 |
| -" |
| 50 | +"Invalid options object. CSS Loader has been initialised using an options object that does not match the API schema. |
| 51 | + - options.modules should be one of these: |
| 52 | + boolean | \\"local\\" | \\"global\\" | object { mode?, localIdentName?, localIdentRegExp?, context?, hashPrefix?, getLocalIdent? } |
| 53 | + -> Enables/Disables CSS Modules and their configuration (https://github.com/webpack-contrib/css-loader#modules). |
| 54 | + Details: |
| 55 | + * options.modules should be a boolean. |
| 56 | + * options.modules should be one of these: |
| 57 | + \\"local\\" | \\"global\\" |
| 58 | + * options.modules should be an object: |
| 59 | + object { mode?, localIdentName?, localIdentRegExp?, context?, hashPrefix?, getLocalIdent? }" |
49 | 60 | `;
|
50 | 61 |
|
51 | 62 | exports[`validate options 6`] = `
|
52 |
| -"CSS Loader Invalid Options |
53 |
| -
|
54 |
| -options.modules should be boolean |
55 |
| -options.modules should be string |
56 |
| -options.modules should be equal to one of the allowed values |
57 |
| -options.modules.mode should be string |
58 |
| -options.modules.mode should be equal to one of the allowed values |
59 |
| -options.modules should match some schema in anyOf |
60 |
| -" |
| 63 | +"Invalid options object. CSS Loader has been initialised using an options object that does not match the API schema. |
| 64 | + - options.modules.mode should be one of these: |
| 65 | + \\"local\\" | \\"global\\"" |
61 | 66 | `;
|
62 | 67 |
|
63 | 68 | exports[`validate options 7`] = `
|
64 |
| -"CSS Loader Invalid Options |
65 |
| -
|
66 |
| -options.modules should be boolean |
67 |
| -options.modules should be string |
68 |
| -options.modules should be equal to one of the allowed values |
69 |
| -options.modules.mode should be equal to one of the allowed values |
70 |
| -options.modules should match some schema in anyOf |
71 |
| -" |
| 69 | +"Invalid options object. CSS Loader has been initialised using an options object that does not match the API schema. |
| 70 | + - options.modules.mode should be one of these: |
| 71 | + \\"local\\" | \\"global\\"" |
72 | 72 | `;
|
73 | 73 |
|
74 | 74 | exports[`validate options 8`] = `
|
75 |
| -"CSS Loader Invalid Options |
76 |
| -
|
77 |
| -options.modules should be boolean |
78 |
| -options.modules should be string |
79 |
| -options.modules should be equal to one of the allowed values |
80 |
| -options.modules.mode should be equal to one of the allowed values |
81 |
| -options.modules should match some schema in anyOf |
82 |
| -" |
| 75 | +"Invalid options object. CSS Loader has been initialised using an options object that does not match the API schema. |
| 76 | + - options.modules.mode should be one of these: |
| 77 | + \\"local\\" | \\"global\\"" |
83 | 78 | `;
|
84 | 79 |
|
85 | 80 | exports[`validate options 9`] = `
|
86 |
| -"CSS Loader Invalid Options |
87 |
| -
|
88 |
| -options.modules should be boolean |
89 |
| -options.modules should be string |
90 |
| -options.modules should be equal to one of the allowed values |
91 |
| -options.modules.mode should be equal to one of the allowed values |
92 |
| -options.modules should match some schema in anyOf |
93 |
| -" |
| 81 | +"Invalid options object. CSS Loader has been initialised using an options object that does not match the API schema. |
| 82 | + - options.modules.mode should be one of these: |
| 83 | + \\"local\\" | \\"global\\"" |
94 | 84 | `;
|
95 | 85 |
|
96 | 86 | exports[`validate options 10`] = `
|
97 |
| -"CSS Loader Invalid Options |
98 |
| -
|
99 |
| -options.modules should be boolean |
100 |
| -options.modules should be string |
101 |
| -options.modules should be equal to one of the allowed values |
102 |
| -options.modules.localIdentName should be string |
103 |
| -options.modules should match some schema in anyOf |
104 |
| -" |
| 87 | +"Invalid options object. CSS Loader has been initialised using an options object that does not match the API schema. |
| 88 | + - options.modules.localIdentName should be a string." |
105 | 89 | `;
|
106 | 90 |
|
107 | 91 | exports[`validate options 11`] = `
|
108 |
| -"CSS Loader Invalid Options |
109 |
| -
|
110 |
| -options.modules should be boolean |
111 |
| -options.modules should be string |
112 |
| -options.modules should be equal to one of the allowed values |
113 |
| -options.modules.context should be string |
114 |
| -options.modules should match some schema in anyOf |
115 |
| -" |
| 92 | +"Invalid options object. CSS Loader has been initialised using an options object that does not match the API schema. |
| 93 | + - options.modules.context should be a string." |
116 | 94 | `;
|
117 | 95 |
|
118 | 96 | exports[`validate options 12`] = `
|
119 |
| -"CSS Loader Invalid Options |
120 |
| -
|
121 |
| -options.modules should be boolean |
122 |
| -options.modules should be string |
123 |
| -options.modules should be equal to one of the allowed values |
124 |
| -options.modules.hashPrefix should be string |
125 |
| -options.modules should match some schema in anyOf |
126 |
| -" |
| 97 | +"Invalid options object. CSS Loader has been initialised using an options object that does not match the API schema. |
| 98 | + - options.modules.hashPrefix should be a string." |
127 | 99 | `;
|
128 | 100 |
|
129 | 101 | exports[`validate options 13`] = `
|
130 |
| -"CSS Loader Invalid Options |
131 |
| -
|
132 |
| -options.modules should be boolean |
133 |
| -options.modules should be string |
134 |
| -options.modules should be equal to one of the allowed values |
135 |
| -options.modules.getLocalIdent should be boolean |
136 |
| -options.modules.getLocalIdent should pass \\"instanceof\\" keyword validation |
137 |
| -options.modules.getLocalIdent should match some schema in anyOf |
138 |
| -options.modules should match some schema in anyOf |
139 |
| -" |
| 102 | +"Invalid options object. CSS Loader has been initialised using an options object that does not match the API schema. |
| 103 | + - options.modules should be one of these: |
| 104 | + boolean | \\"local\\" | \\"global\\" | object { mode?, localIdentName?, localIdentRegExp?, context?, hashPrefix?, getLocalIdent? } |
| 105 | + -> Enables/Disables CSS Modules and their configuration (https://github.com/webpack-contrib/css-loader#modules). |
| 106 | + Details: |
| 107 | + * options.modules.getLocalIdent should be a boolean. |
| 108 | + * options.modules.getLocalIdent should be an instance of function. |
| 109 | + * options.modules.getLocalIdent should be one of these: |
| 110 | + boolean | function" |
140 | 111 | `;
|
141 | 112 |
|
142 | 113 | exports[`validate options 14`] = `
|
143 |
| -"CSS Loader Invalid Options |
144 |
| -
|
145 |
| -options.modules should be boolean |
146 |
| -options.modules should be string |
147 |
| -options.modules should be equal to one of the allowed values |
148 |
| -options.modules.localIdentRegExp should be string |
149 |
| -options.modules.localIdentRegExp should pass \\"instanceof\\" keyword validation |
150 |
| -options.modules.localIdentRegExp should match some schema in anyOf |
151 |
| -options.modules should match some schema in anyOf |
152 |
| -" |
| 114 | +"Invalid options object. CSS Loader has been initialised using an options object that does not match the API schema. |
| 115 | + - options.modules should be one of these: |
| 116 | + boolean | \\"local\\" | \\"global\\" | object { mode?, localIdentName?, localIdentRegExp?, context?, hashPrefix?, getLocalIdent? } |
| 117 | + -> Enables/Disables CSS Modules and their configuration (https://github.com/webpack-contrib/css-loader#modules). |
| 118 | + Details: |
| 119 | + * options.modules.localIdentRegExp should be a string. |
| 120 | + * options.modules.localIdentRegExp should be an instance of RegExp. |
| 121 | + * options.modules.localIdentRegExp should be one of these: |
| 122 | + string | RegExp" |
153 | 123 | `;
|
154 | 124 |
|
155 | 125 | exports[`validate options 15`] = `
|
156 |
| -"CSS Loader Invalid Options |
157 |
| -
|
158 |
| -options.sourceMap should be boolean |
159 |
| -" |
| 126 | +"Invalid options object. CSS Loader has been initialised using an options object that does not match the API schema. |
| 127 | + - options.sourceMap should be a boolean. |
| 128 | + -> Enables/Disables generation of source maps (https://github.com/webpack-contrib/css-loader#sourcemap)." |
160 | 129 | `;
|
161 | 130 |
|
162 | 131 | exports[`validate options 16`] = `
|
163 |
| -"CSS Loader Invalid Options |
164 |
| -
|
165 |
| -options.localsConvention should be equal to one of the allowed values |
166 |
| -options.localsConvention should match some schema in anyOf |
167 |
| -" |
| 132 | +"Invalid options object. CSS Loader has been initialised using an options object that does not match the API schema. |
| 133 | + - options.localsConvention should be one of these: |
| 134 | + \\"asIs\\" | \\"camelCase\\" | \\"camelCaseOnly\\" | \\"dashes\\" | \\"dashesOnly\\" |
| 135 | + -> Style of exported classnames (https://github.com/webpack-contrib/css-loader#localsconvention)." |
168 | 136 | `;
|
169 | 137 |
|
170 | 138 | exports[`validate options 17`] = `
|
171 |
| -"CSS Loader Invalid Options |
172 |
| -
|
173 |
| -options.importLoaders should be boolean |
174 |
| -options.importLoaders should be number |
175 |
| -options.importLoaders should match some schema in anyOf |
176 |
| -" |
| 139 | +"Invalid options object. CSS Loader has been initialised using an options object that does not match the API schema. |
| 140 | + - options.importLoaders should be one of these: |
| 141 | + boolean | number |
| 142 | + -> Enables/Disables or setups number of loaders applied before CSS loader (https://github.com/webpack-contrib/css-loader#importloaders). |
| 143 | + Details: |
| 144 | + * options.importLoaders should be a boolean. |
| 145 | + * options.importLoaders should be a number." |
177 | 146 | `;
|
178 | 147 |
|
179 | 148 | exports[`validate options 18`] = `
|
180 |
| -"CSS Loader Invalid Options |
| 149 | +"Invalid options object. CSS Loader has been initialised using an options object that does not match the API schema. |
| 150 | + - options.onlyLocals should be a boolean. |
| 151 | + -> Export only locals (https://github.com/webpack-contrib/css-loader#onlylocals)." |
| 152 | +`; |
181 | 153 |
|
182 |
| -options.onlyLocals should be boolean |
183 |
| -" |
| 154 | +exports[`validate options 19`] = ` |
| 155 | +"Invalid options object. CSS Loader has been initialised using an options object that does not match the API schema. |
| 156 | + - options has an unknown property 'unknown'. These properties are valid: |
| 157 | + object { url?, import?, modules?, sourceMap?, importLoaders?, localsConvention?, onlyLocals? }" |
184 | 158 | `;
|
0 commit comments