@@ -114,6 +114,13 @@ exports[`validate options should throw an error on the "implementation" option w
114
114
object { … } "
115
115
` ;
116
116
117
+ exports [` validate options should throw an error on the "lessLogAsWarnOrErr" option with "string" value 1` ] = `
118
+ "Invalid options object. Less Loader has been initialized using an options object that does not match the API schema.
119
+ - options.lessLogAsWarnOrErr should be a boolean.
120
+ -> Less warnings and errors will be webpack warnings or errors.
121
+ -> Read more at https://github.com/webpack-contrib/less-loader#lesslogaswarnorerr"
122
+ ` ;
123
+
117
124
exports [` validate options should throw an error on the "lessOptions" option with "[]" value 1` ] = `
118
125
"Invalid options object. Less Loader has been initialized using an options object that does not match the API schema.
119
126
- options.lessOptions should be one of these:
@@ -184,49 +191,49 @@ exports[`validate options should throw an error on the "sourceMap" option with "
184
191
exports [` validate options should throw an error on the "unknown" option with "/test/" value 1` ] = `
185
192
"Invalid options object. Less Loader has been initialized using an options object that does not match the API schema.
186
193
- options has an unknown property 'unknown'. These properties are valid:
187
- object { lessOptions ? , additionalData ? , sourceMap ? , webpackImporter ? , implementation ? }"
194
+ object { lessOptions ? , additionalData ? , sourceMap ? , webpackImporter ? , implementation ? , lessLogAsWarnOrErr ? }"
188
195
`;
189
196
190
197
exports [` validate options should throw an error on the "unknown" option with "[]" value 1` ] = `
191
198
"Invalid options object. Less Loader has been initialized using an options object that does not match the API schema.
192
199
- options has an unknown property 'unknown'. These properties are valid:
193
- object { lessOptions ? , additionalData ? , sourceMap ? , webpackImporter ? , implementation ? }"
200
+ object { lessOptions ? , additionalData ? , sourceMap ? , webpackImporter ? , implementation ? , lessLogAsWarnOrErr ? }"
194
201
`;
195
202
196
203
exports [` validate options should throw an error on the "unknown" option with "{ " foo" :" bar" } " value 1` ] = `
197
204
"Invalid options object. Less Loader has been initialized using an options object that does not match the API schema.
198
205
- options has an unknown property 'unknown'. These properties are valid:
199
- object { lessOptions ? , additionalData ? , sourceMap ? , webpackImporter ? , implementation ? }"
206
+ object { lessOptions ? , additionalData ? , sourceMap ? , webpackImporter ? , implementation ? , lessLogAsWarnOrErr ? }"
200
207
`;
201
208
202
209
exports [` validate options should throw an error on the "unknown" option with "{ } " value 1` ] = `
203
210
"Invalid options object. Less Loader has been initialized using an options object that does not match the API schema.
204
211
- options has an unknown property 'unknown'. These properties are valid:
205
- object { lessOptions ? , additionalData ? , sourceMap ? , webpackImporter ? , implementation ? }"
212
+ object { lessOptions ? , additionalData ? , sourceMap ? , webpackImporter ? , implementation ? , lessLogAsWarnOrErr ? }"
206
213
`;
207
214
208
215
exports [` validate options should throw an error on the "unknown" option with "1" value 1` ] = `
209
216
"Invalid options object. Less Loader has been initialized using an options object that does not match the API schema.
210
217
- options has an unknown property 'unknown'. These properties are valid:
211
- object { lessOptions ? , additionalData ? , sourceMap ? , webpackImporter ? , implementation ? }"
218
+ object { lessOptions ? , additionalData ? , sourceMap ? , webpackImporter ? , implementation ? , lessLogAsWarnOrErr ? }"
212
219
`;
213
220
214
221
exports [` validate options should throw an error on the "unknown" option with "false" value 1` ] = `
215
222
"Invalid options object. Less Loader has been initialized using an options object that does not match the API schema.
216
223
- options has an unknown property 'unknown'. These properties are valid:
217
- object { lessOptions ? , additionalData ? , sourceMap ? , webpackImporter ? , implementation ? }"
224
+ object { lessOptions ? , additionalData ? , sourceMap ? , webpackImporter ? , implementation ? , lessLogAsWarnOrErr ? }"
218
225
`;
219
226
220
227
exports [` validate options should throw an error on the "unknown" option with "test" value 1` ] = `
221
228
"Invalid options object. Less Loader has been initialized using an options object that does not match the API schema.
222
229
- options has an unknown property 'unknown'. These properties are valid:
223
- object { lessOptions ? , additionalData ? , sourceMap ? , webpackImporter ? , implementation ? }"
230
+ object { lessOptions ? , additionalData ? , sourceMap ? , webpackImporter ? , implementation ? , lessLogAsWarnOrErr ? }"
224
231
`;
225
232
226
233
exports [` validate options should throw an error on the "unknown" option with "true" value 1` ] = `
227
234
"Invalid options object. Less Loader has been initialized using an options object that does not match the API schema.
228
235
- options has an unknown property 'unknown'. These properties are valid:
229
- object { lessOptions ? , additionalData ? , sourceMap ? , webpackImporter ? , implementation ? }"
236
+ object { lessOptions ? , additionalData ? , sourceMap ? , webpackImporter ? , implementation ? , lessLogAsWarnOrErr ? }"
230
237
`;
231
238
232
239
exports [` validate options should throw an error on the "webpackImporter" option with "string" value 1` ] = `
0 commit comments