-
-
Notifications
You must be signed in to change notification settings - Fork 38
/
index.test.js.snap
1412 lines (1187 loc) · 95.2 KB
/
index.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Validation should fail validation for ! in path 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.output.path: The provided value \\"/somepath/!test\\" contains exclamation mark (!) which is not allowed because it's reserved for loader syntax.
-> The output directory as **absolute path** (required)."
`;
exports[`Validation should fail validation for Invalid plugin provided: int 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.plugins[0] should be one of these:
object { apply, … } | function
-> Plugin of type object or instanceof Function
Details:
* configuration.plugins[0] should be an object:
object { apply, … }
-> Plugin instance
* configuration.plugins[0] should be an instance of function
-> Function acting as plugin."
`;
exports[`Validation should fail validation for Invalid plugin provided: object without apply function 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.plugins[0] misses the property 'apply'. Should be:
function
-> The run point of the plugin, required method."
`;
exports[`Validation should fail validation for absolute path 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.context: The provided value \\"baz\\" is not an absolute path!
-> The base directory (absolute path!) for resolving the \`entry\` option. If \`output.pathinfo\` is set, the included pathinfo is shortened to this directory."
`;
exports[`Validation should fail validation for additional key on root 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration has an unknown property 'postcss'. These properties are valid:
object { amd?, bail?, cache?, context?, dependencies?, devServer?, devtool?, entry?, externals?, loader?, mode?, module?, name?, node?, optimization?, output?, parallelism?, performance?, plugins?, profile?, recordsInputPath?, recordsOutputPath?, recordsPath?, resolve?, resolveLoader?, serve?, stats?, target?, watch?, watchOptions?, minLengthOne?, minLengthTwo?, integerType?, nullType?, allOfRef?, customObject?, objectType?, anyOfKeyword?, nestedArrayWithoutItems?, nestedObjectWithoutItems?, arrayType?, arrayType2?, multipleTypes?, zeroMaxItems?, multipleContains?, multipleContains2?, exclusiveMinimumKeyword?, exclusiveMaximumKeyword?, uniqueItemsKeyword?, minPropertiesKeyword?, maxPropertiesKeyword?, requiredKeyword?, requiredKeywordWithAdditionalProperties?, enumKeyword?, formatMinimumKeyword?, formatMaximumKeyword?, formatExclusiveMinimumKeyword?, formatExclusiveMaximumKeyword?, formatMinMaxExclusiveMinKeyword?, formatMinMaxExclusiveMaxKeyword?, minItemsKeyword?, maxItemsKeyword?, itemsKeyword?, itemsKeyword2?, additionalItemsKeyword?, additionalItemsKeyword2?, additionalItemsKeyword3?, additionalItemsKeyword4?, propertiesKeyword?, patternPropertiesKeyword?, patternPropertiesKeyword2?, arrayWithOnlyNumber?, onlyRequired?, dependenciesKeyword?, dependenciesKeyword2?, patternRequiredKeyword?, patternRequiredKeyword2?, onlyProperties?, onlyProperties2?, onlyItems?, onlyItems2?, onlyAdditionalItems?, booleanType?, additionalPropertiesKeyword?, additionalPropertiesKeyword2?, propertyNamesKeyword?, constKeyword?, constKeyword2?, ifThenElseKeyword?, ifThenElseKeyword2?, stringKeyword?, arrayKeyword?, arrayKeyword2?, arrayKeyword3?, arrayKeyword4?, arrayKeyword5?, arrayKeyword6?, arrayKeyword7?, arrayKeyword8?, arrayKeyword9?, arrayKeyword10?, arrayKeyword11?, arrayKeyword12?, arrayKeyword13?, arrayKeyword14?, arrayKeyword15?, arrayKeyword16?, arrayKeyword17?, arrayKeyword18?, arrayKeyword19?, recursion?, extending?, longString?, integerWithMinimum?, integerWithExclusiveMinimum?, integerWithExclusiveMaximum?, numberWithMinimum?, multipleOfProp?, stringWithMinAndMaxLength?, strictFormat?, strictFormat2?, uniqueItemsProp?, numberAndDescription?, oneOfnumberAndDescriptionAndArray?, maxPropertiesAndMinProperties?, objectTest?, objectTest2?, objectTest3?, objectTest4?, objectTest5?, objectTest6?, objectTest7?, objectTest8?, objectTest9?, stringWithEmptyPattern?, likeArray?, arrayWithEmptyItemsAndEmptyAdditionalItemsAndEmptyContains?, numberWithoutType?, numberWithoutType2?, stringWithoutType?, arrayWithoutType?, additionalItemsFalse?, requiredWithoutType?, dependenciesWithoutType?, propertyNamesWithoutType?, patternRequiredWithoutType?, additionalPropertiesWithoutType?, maxPropertiesWithoutType?, justAnObject?, arrayWithAbsolutePath?, allOfKeyword?, enumWithDescription?, constWithDescription?, itemsTrue?, emptyConst?, oneConst?, constWithEmptyString?, refAndAnyOf?, additionalPropertiesInsideOneOf?, additionalPropertiesInsideOneOf2?, singleContainsItems?, objectWithPropertyDependency?, objectWithPropertyDependency2?, objectWithPropertyDependency3?, objectWithPropertyDependency4?, oneOfWithIf?, constWithArrayNotation?, constWithObjectNotation?, additionalItemsWithoutType?, additionalItemsWithoutType2?, additionalItemsWithoutType3?, containsAndAdditionalItems?, containsInsideItem?, emptyObject?, nonEmptyObject?, nonEmptyObject2? }"
`;
exports[`Validation should fail validation for additionalItems #2 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.additionalItemsKeyword2[0] should be a integer."
`;
exports[`Validation should fail validation for additionalItems #3 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.additionalItemsKeyword3[0] should be a integer."
`;
exports[`Validation should fail validation for additionalItems #4 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.additionalItemsKeyword4 should not have more than 2 items. These items are valid:
[integer, integer]"
`;
exports[`Validation should fail validation for additionalItems 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.additionalItemsKeyword[1] should be a integer."
`;
exports[`Validation should fail validation for additionalItems with false 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.additionalItemsFalse should not have more than 2 items. These items are valid:
[integer, integer]"
`;
exports[`Validation should fail validation for additionalProperties #2 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.additionalPropertiesKeyword has an unknown property 'baz'. These properties are valid:
object { foo? } (additional property names should match pattern \\"^.*r$\\")"
`;
exports[`Validation should fail validation for additionalProperties #3 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.additionalPropertiesKeyword has an unknown property 'baz'. These properties are valid:
object { foo? } (additional property names should match pattern \\"^.*r$\\")
- configuration.additionalPropertiesKeyword.foo should be a number."
`;
exports[`Validation should fail validation for additionalProperties #4 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.additionalPropertiesKeyword2['a'] should be a string."
`;
exports[`Validation should fail validation for additionalProperties #5 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.additionalPropertiesKeyword2['baz'] should be a string."
`;
exports[`Validation should fail validation for additionalProperties #6 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.additionalPropertiesKeyword2['bar'] should be a number."
`;
exports[`Validation should fail validation for additionalProperties 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.additionalPropertiesKeyword has an unknown property 'a'. These properties are valid:
object { foo? } (additional property names should match pattern \\"^.*r$\\")"
`;
exports[`Validation should fail validation for additionalProperties inside oneOf #2 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.additionalPropertiesInsideOneOf has an unknown property 'bar'. These properties are valid:
object { foo? }"
`;
exports[`Validation should fail validation for additionalProperties inside oneOf #3 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.additionalPropertiesInsideOneOf2 should be one of these:
integer (should be <= 3) | object { foo?, … }
Details:
* configuration.additionalPropertiesInsideOneOf2 should be a integer (should be <= 3).
* configuration.additionalPropertiesInsideOneOf2 should be an object:
object { foo?, … }"
`;
exports[`Validation should fail validation for additionalProperties inside oneOf 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.additionalPropertiesInsideOneOf should be one of these:
integer (should be <= 3) | object { foo? }
Details:
* configuration.additionalPropertiesInsideOneOf should be a integer (should be <= 3).
* configuration.additionalPropertiesInsideOneOf should be an object:
object { foo? }"
`;
exports[`Validation should fail validation for additionalProperties without object type 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.additionalPropertiesWithoutType has an unknown property 'boo'. These properties are valid:
object {}"
`;
exports[`Validation should fail validation for allOf #1 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.allOfKeyword should be a integer."
`;
exports[`Validation should fail validation for allOf #2 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.allOfKeyword should be <= 3."
`;
exports[`Validation should fail validation for allOf 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.objectType.objectProperty should be one of these:
[non-empty string & [non-empty string, ...], ...] | boolean
Details:
* configuration.objectType.objectProperty should be an array:
[non-empty string & [non-empty string, ...], ...]
* configuration.objectType.objectProperty should be a boolean."
`;
exports[`Validation should fail validation for allOf 2`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.allOfKeyword should be a integer."
`;
exports[`Validation should fail validation for anyOf 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.anyOfKeyword should be one of these:
object { foo?, … } | non-empty string | [non-empty string, ...] (should not have fewer than 1 item, should not have duplicate items)
Details:
* configuration.anyOfKeyword should be an object:
object { foo?, … }
* configuration.anyOfKeyword should be a non-empty string.
-> An entry point without name. The string is resolved to a module which is loaded upon startup.
* configuration.anyOfKeyword should be an array:
[non-empty string, ...] (should not have fewer than 1 item, should not have duplicate items)
-> A non-empty array of non-empty strings
* configuration.anyOfKeyword should be one of these:
[non-empty string, ...] (should not have fewer than 1 item, should not have duplicate items)
-> An entry point without name. All modules are loaded upon startup. The last one is exported.
* configuration.anyOfKeyword should be one of these:
non-empty string | [non-empty string, ...] (should not have fewer than 1 item, should not have duplicate items)"
`;
exports[`Validation should fail validation for array #1 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.arrayKeyword[0] should be a integer."
`;
exports[`Validation should fail validation for array #2 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.arrayKeyword should not contain the item '1' twice."
`;
exports[`Validation should fail validation for array #3 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.arrayKeyword should not have more than 4 items."
`;
exports[`Validation should fail validation for array #4 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.arrayKeyword2 should not contain the item '1' twice."
`;
exports[`Validation should fail validation for array #4 2`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.arrayKeyword3[0] should be a integer.
- configuration.arrayKeyword3[1] should be a integer."
`;
exports[`Validation should fail validation for array #5 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.arrayKeyword2 should not have more than 3 items."
`;
exports[`Validation should fail validation for array #5 2`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.arrayKeyword3 should not contain the item '1' twice."
`;
exports[`Validation should fail validation for array #6 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.arrayKeyword3 should not have more than 3 items."
`;
exports[`Validation should fail validation for array #7 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.arrayKeyword4 should be an array:
[any, ...] (should not have more than 3 items, should not have duplicate items, should contains at least one integer item)
-> Description"
`;
exports[`Validation should fail validation for array #8 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.arrayKeyword5[0] should be a string."
`;
exports[`Validation should fail validation for array #9 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.arrayKeyword6 should contains at least one boolean item."
`;
exports[`Validation should fail validation for array #10 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.arrayKeyword6 should contains at least one boolean item."
`;
exports[`Validation should fail validation for array #11 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.arrayKeyword6[0] should be a string."
`;
exports[`Validation should fail validation for array #12 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.arrayKeyword7 should contains at least one boolean item."
`;
exports[`Validation should fail validation for array #13 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.arrayKeyword8[3] should be a string."
`;
exports[`Validation should fail validation for array #14 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.arrayKeyword8 should be an array:
[string, number, ...] (should not have fewer than 4 items, should not have more than 8 items, additional items should be string, should contains at least one boolean item)"
`;
exports[`Validation should fail validation for array #15 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.arrayKeyword9 should be an array:
[any, ...]"
`;
exports[`Validation should fail validation for array #16 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.arrayKeyword10 should be an array:
[number, ...]"
`;
exports[`Validation should fail validation for array #17 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.arrayKeyword11 should be an array:
[number, string, \\"Street\\" | \\"Avenue\\" | \\"Boulevard\\", \\"NW\\" | \\"NE\\" | \\"SW\\" | \\"SE\\", ...]"
`;
exports[`Validation should fail validation for array #18 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.arrayKeyword12 should be an array:
[integer, integer, ...]"
`;
exports[`Validation should fail validation for array #19 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.arrayKeyword13 should be an array:
[integer, integer, ...] (additional items should be string)"
`;
exports[`Validation should fail validation for array #20 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.arrayKeyword14 should be an array:
[integer, integer, ...] (should not have fewer than 4 items, should not have more than 8 items, additional items should be string)"
`;
exports[`Validation should fail validation for array #21 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.arrayKeyword15 should be an array:
[integer, integer]"
`;
exports[`Validation should fail validation for array #22 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.arrayKeyword16 should be an array:
[integer, integer, ...] (should not have fewer than 4 items, should not have more than 8 items, additional items should be object { foo?, bar?, … })"
`;
exports[`Validation should fail validation for array #23 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.arrayKeyword17 should be an array:
[any, ...] (should contains at least one string item)
-> Description."
`;
exports[`Validation should fail validation for array #24 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.arrayKeyword17 should contains at least one string item."
`;
exports[`Validation should fail validation for array #25 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.arrayKeyword18[0] should be a boolean.
- configuration.arrayKeyword18[1] should be a boolean.
- configuration.arrayKeyword18[2] should be a boolean."
`;
exports[`Validation should fail validation for array #26 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.arrayKeyword19 should be an array:
[any, ...] (should contains at least one boolean | integer item)
-> Description."
`;
exports[`Validation should fail validation for array 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.arrayKeyword should be an array:
[integer, string, ...] (should not have more than 4 items, should not have duplicate items)"
`;
exports[`Validation should fail validation for array keywords without array type 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.likeArray[0] should be a integer."
`;
exports[`Validation should fail validation for array type 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.dependencies should be an array:
[string, ...]
-> References to other configurations to depend on."
`;
exports[`Validation should fail validation for array with absolutePath item 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.arrayWithAbsolutePath should be an array:
[integer, string, ...]"
`;
exports[`Validation should fail validation for array with empty items, empty additionalItems, empty contains 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.arrayWithEmptyItemsAndEmptyAdditionalItemsAndEmptyContains should be an array:
[any, ...]"
`;
exports[`Validation should fail validation for array with items with true 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.itemsTrue should be an array:
[any, ...]"
`;
exports[`Validation should fail validation for array with only number 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.arrayWithOnlyNumber[0] should be a number."
`;
exports[`Validation should fail validation for array with string items and minLength 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.longString should be an array:
[string (should not be shorter than 2 characters), ...]"
`;
exports[`Validation should fail validation for array without items 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.nestedArrayWithoutItems should be one of these:
string | [any, ...]
Details:
* configuration.nestedArrayWithoutItems should be a string.
* configuration.nestedArrayWithoutItems should be an array:
[any, ...]"
`;
exports[`Validation should fail validation for boolean and number in object with anyOf 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.watchOptions.poll should be one of these:
boolean | number
-> Enable polling mode for watching
Details:
* configuration.watchOptions.poll should be a boolean.
-> \`true\`: use polling.
* configuration.watchOptions.poll should be a number.
-> \`number\`: use polling with specified interval."
`;
exports[`Validation should fail validation for boolean and object in object with anyOf 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.allOfRef.unsafeCache should be one of these:
boolean | object { … }
-> Enable caching of successfully resolved requests
Details:
* configuration.allOfRef.unsafeCache should be a boolean.
* configuration.allOfRef.unsafeCache should be an object:
object { … }"
`;
exports[`Validation should fail validation for boolean type 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.bail should be a boolean.
-> Report the first error as a hard error instead of tolerating it."
`;
exports[`Validation should fail validation for configuration dataPath #1 1`] = `
"Invalid options object. MyPlugin has been initialised using an options object that does not match the API schema.
- options.entry should be an non-empty string.
-> An entry point without name. The string is resolved to a module which is loaded upon startup."
`;
exports[`Validation should fail validation for configuration dataPath 1`] = `
"Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
- configuration.entry should be an non-empty string.
-> An entry point without name. The string is resolved to a module which is loaded upon startup."
`;
exports[`Validation should fail validation for const with array notation 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.constWithArrayNotation should be equal to constant [1,2,3]"
`;
exports[`Validation should fail validation for const with description 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.constWithDescription should be equal to constant \\"foo\\"
-> Foo and Bar description."
`;
exports[`Validation should fail validation for const with empty string 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.constWithEmptyString should be equal to constant [\\"foo\\",\\"\\",2]"
`;
exports[`Validation should fail validation for const with object notation 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.constWithObjectNotation should be equal to constant {\\"foo\\":\\"bar\\",\\"baz\\":123}"
`;
exports[`Validation should fail validation for constKeyword #2 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.constKeyword2 should be equal to constant [\\"foo\\",\\"bar\\"]"
`;
exports[`Validation should fail validation for constKeyword 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.constKeyword should be equal to constant \\"foo\\""
`;
exports[`Validation should fail validation for contains #1 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.multipleContains2[0] should be:
number | string | boolean"
`;
exports[`Validation should fail validation for contains 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.customObject.containsKeyword should contains at least one integer item."
`;
exports[`Validation should fail validation for contains and additionalItems #2 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.containsAndAdditionalItems should contains at least one integer | boolean item."
`;
exports[`Validation should fail validation for contains and additionalItems 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.containsAndAdditionalItems should be an array:
[any, ...] (should contains at least one integer | boolean item)"
`;
exports[`Validation should fail validation for contains inside items #2 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.containsInsideItem[0] should contains at least one integer item."
`;
exports[`Validation should fail validation for contains inside items 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.containsInsideItem should be an array:
[[any, ...] (should contains at least one integer item), ...]"
`;
exports[`Validation should fail validation for css-loader name 1`] = `
"Invalid configuration object. CSS Loader has been initialised using a configuration object that does not match the API schema.
- configuration.entry should be an non-empty string.
-> An entry point without name. The string is resolved to a module which is loaded upon startup."
`;
exports[`Validation should fail validation for deep error 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.module.rules[0].oneOf[0] has an unknown property 'passer'. These properties are valid:
object { compiler?, enforce?, exclude?, include?, issuer?, loader?, loaders?, oneOf?, options?, parser?, query?, resolve?, resource?, resourceQuery?, rules?, sideEffects?, test?, type?, use? }
-> A rule"
`;
exports[`Validation should fail validation for dependencies #2 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.dependenciesKeyword2.bar should be a number."
`;
exports[`Validation should fail validation for dependencies 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.dependenciesKeyword should have properties 'bar', 'baz' when property 'foo' is present."
`;
exports[`Validation should fail validation for dependencies without object type 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.dependenciesWithoutType should have properties 'bar', 'baz' when property 'foo' is present."
`;
exports[`Validation should fail validation for empty const 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.emptyConst should be equal to constant \\"\\""
`;
exports[`Validation should fail validation for empty entry bundle array 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.entry['bundle'] should be an non-empty array.
-> A non-empty array of non-empty strings"
`;
exports[`Validation should fail validation for empty entry string 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.entry should be an non-empty string.
-> An entry point without name. The string is resolved to a module which is loaded upon startup."
`;
exports[`Validation should fail validation for empty object #2 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.emptyObject has an unknown property 'a'. These properties are valid:
object {}"
`;
exports[`Validation should fail validation for empty object 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.emptyObject should be an object:
object {}"
`;
exports[`Validation should fail validation for enum 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.devtool should be one of these:
string | false
-> A developer tool to enhance debugging.
Details:
* configuration.devtool should be a string.
* configuration.devtool should be false."
`;
exports[`Validation should fail validation for enum 2`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.enumKeyword should be one of these:
2 | \\"foo\\" | {\\"foo\\":\\"bar\\"} | [1,2,3]"
`;
exports[`Validation should fail validation for exclusiveMaximum 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.exclusiveMaximumKeyword should be < 5."
`;
exports[`Validation should fail validation for exclusiveMinimum 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.exclusiveMinimumKeyword should be > 5."
`;
exports[`Validation should fail validation for extending 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.extending.shipping_address misses the property 'type'. Should be:
\\"residential\\" | \\"business\\""
`;
exports[`Validation should fail validation for format 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.customObject.formatKeyword should match format \\"ipv4\\"."
`;
exports[`Validation should fail validation for format and formatMinimum and formatMaximum and formatExclusiveMaximum 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.formatMinMaxExclusiveMinKeyword should be > \\"2016-02-06\\"."
`;
exports[`Validation should fail validation for format and formatMinimum and formatMaximum and formatExclusiveMaximum 2`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.formatMinMaxExclusiveMaxKeyword should be >= \\"2016-02-06\\"."
`;
exports[`Validation should fail validation for format, formatMaximum and formatExclusiveMaximum #2 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.strictFormat should be < \\"2016-02-06\\"."
`;
exports[`Validation should fail validation for format, formatMaximum and formatExclusiveMaximum 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.strictFormat should be a string (should match format \\"date\\", should be < \\"2016-02-06\\")."
`;
exports[`Validation should fail validation for format, formatMinimum and formatExclusiveMinimum #2 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.strictFormat2 should be > \\"2016-02-06\\"."
`;
exports[`Validation should fail validation for format, formatMinimum and formatExclusiveMinimum 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.strictFormat2 should be a string (should match format \\"date\\", should be > \\"2016-02-06\\")."
`;
exports[`Validation should fail validation for formatExclusiveMaximum 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.formatExclusiveMaximumKeyword should be < \\"2016-02-06\\"."
`;
exports[`Validation should fail validation for formatExclusiveMinimum 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.formatExclusiveMinimumKeyword should be > \\"2016-02-06\\"."
`;
exports[`Validation should fail validation for formatMaximum 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.formatMaximumKeyword should be <= \\"2016-02-06\\"."
`;
exports[`Validation should fail validation for formatMinimum 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.formatMinimumKeyword should be >= \\"2016-02-06\\"."
`;
exports[`Validation should fail validation for holey array 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration[1] should be an object:
object { amd?, bail?, cache?, context?, dependencies?, devServer?, devtool?, entry?, externals?, loader?, mode?, module?, name?, node?, optimization?, output?, parallelism?, performance?, plugins?, profile?, recordsInputPath?, recordsOutputPath?, recordsPath?, resolve?, resolveLoader?, serve?, stats?, target?, watch?, watchOptions?, minLengthOne?, minLengthTwo?, integerType?, nullType?, allOfRef?, customObject?, objectType?, anyOfKeyword?, nestedArrayWithoutItems?, nestedObjectWithoutItems?, arrayType?, arrayType2?, multipleTypes?, zeroMaxItems?, multipleContains?, multipleContains2?, exclusiveMinimumKeyword?, exclusiveMaximumKeyword?, uniqueItemsKeyword?, minPropertiesKeyword?, maxPropertiesKeyword?, requiredKeyword?, requiredKeywordWithAdditionalProperties?, enumKeyword?, formatMinimumKeyword?, formatMaximumKeyword?, formatExclusiveMinimumKeyword?, formatExclusiveMaximumKeyword?, formatMinMaxExclusiveMinKeyword?, formatMinMaxExclusiveMaxKeyword?, minItemsKeyword?, maxItemsKeyword?, itemsKeyword?, itemsKeyword2?, additionalItemsKeyword?, additionalItemsKeyword2?, additionalItemsKeyword3?, additionalItemsKeyword4?, propertiesKeyword?, patternPropertiesKeyword?, patternPropertiesKeyword2?, arrayWithOnlyNumber?, onlyRequired?, dependenciesKeyword?, dependenciesKeyword2?, patternRequiredKeyword?, patternRequiredKeyword2?, onlyProperties?, onlyProperties2?, onlyItems?, onlyItems2?, onlyAdditionalItems?, booleanType?, additionalPropertiesKeyword?, additionalPropertiesKeyword2?, propertyNamesKeyword?, constKeyword?, constKeyword2?, ifThenElseKeyword?, ifThenElseKeyword2?, stringKeyword?, arrayKeyword?, arrayKeyword2?, arrayKeyword3?, arrayKeyword4?, arrayKeyword5?, arrayKeyword6?, arrayKeyword7?, arrayKeyword8?, arrayKeyword9?, arrayKeyword10?, arrayKeyword11?, arrayKeyword12?, arrayKeyword13?, arrayKeyword14?, arrayKeyword15?, arrayKeyword16?, arrayKeyword17?, arrayKeyword18?, arrayKeyword19?, recursion?, extending?, longString?, integerWithMinimum?, integerWithExclusiveMinimum?, integerWithExclusiveMaximum?, numberWithMinimum?, multipleOfProp?, stringWithMinAndMaxLength?, strictFormat?, strictFormat2?, uniqueItemsProp?, numberAndDescription?, oneOfnumberAndDescriptionAndArray?, maxPropertiesAndMinProperties?, objectTest?, objectTest2?, objectTest3?, objectTest4?, objectTest5?, objectTest6?, objectTest7?, objectTest8?, objectTest9?, stringWithEmptyPattern?, likeArray?, arrayWithEmptyItemsAndEmptyAdditionalItemsAndEmptyContains?, numberWithoutType?, numberWithoutType2?, stringWithoutType?, arrayWithoutType?, additionalItemsFalse?, requiredWithoutType?, dependenciesWithoutType?, propertyNamesWithoutType?, patternRequiredWithoutType?, additionalPropertiesWithoutType?, maxPropertiesWithoutType?, justAnObject?, arrayWithAbsolutePath?, allOfKeyword?, enumWithDescription?, constWithDescription?, itemsTrue?, emptyConst?, oneConst?, constWithEmptyString?, refAndAnyOf?, additionalPropertiesInsideOneOf?, additionalPropertiesInsideOneOf2?, singleContainsItems?, objectWithPropertyDependency?, objectWithPropertyDependency2?, objectWithPropertyDependency3?, objectWithPropertyDependency4?, oneOfWithIf?, constWithArrayNotation?, constWithObjectNotation?, additionalItemsWithoutType?, additionalItemsWithoutType2?, additionalItemsWithoutType3?, containsAndAdditionalItems?, containsInsideItem?, emptyObject?, nonEmptyObject?, nonEmptyObject2? }"
`;
exports[`Validation should fail validation for if/then/else #2 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.ifThenElseKeyword should match \\"then\\" schema:
object { disbelief, … }"
`;
exports[`Validation should fail validation for if/then/else #3 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.ifThenElseKeyword should match \\"else\\" schema:
object { confidence, … } (should not have fewer than 3 properties)"
`;
exports[`Validation should fail validation for if/then/else #4 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.ifThenElseKeyword2 should match \\"else\\" schema:
if number (should be >= 10) then number (should be multiple of 10)"
`;
exports[`Validation should fail validation for if/then/else #5 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.ifThenElseKeyword2 should be <= 1000."
`;
exports[`Validation should fail validation for if/then/else #6 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.ifThenElseKeyword2 should be >= 1."
`;
exports[`Validation should fail validation for if/then/else 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.ifThenElseKeyword should match \\"then\\" schema:
object { disbelief, … }"
`;
exports[`Validation should fail validation for integer and null in object with anyOf 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.customObject.anyOfKeyword should be one of these:
integer | null
Details:
* configuration.customObject.anyOfKeyword should be a integer.
* configuration.customObject.anyOfKeyword should be a null."
`;
exports[`Validation should fail validation for integer type 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.integerType should be a integer."
`;
exports[`Validation should fail validation for integer with exclusive maximum 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.integerWithExclusiveMaximum should be a integer (should be > 0)."
`;
exports[`Validation should fail validation for integer with exclusive maximum 2`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.integerWithExclusiveMaximum should be < 0."
`;
exports[`Validation should fail validation for integer with exclusive minimum 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.integerWithExclusiveMinimum should be a integer (should be > 5)."
`;
exports[`Validation should fail validation for integer with exclusive minimum 2`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.integerWithExclusiveMinimum should be > 5."
`;
exports[`Validation should fail validation for integer with minimum 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.integerWithMinimum should be a integer (should be >= 5, should be <= 20)."
`;
exports[`Validation should fail validation for integer with minimum and maximum 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.integerWithMinimum should be >= 5."
`;
exports[`Validation should fail validation for invalid instanceof 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.module.wrappedContextRegExp should be an instance of RegExp
-> Set the inner regular expression for partial dynamic dependencies."
`;
exports[`Validation should fail validation for invalid minimum 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.parallelism should be >= 1.
-> The number of parallel processed modules in the compilation."
`;
exports[`Validation should fail validation for invalid mode 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.mode should be one of these:
\\"development\\" | \\"production\\" | \\"none\\"
-> Enable production optimizations or development hints."
`;
exports[`Validation should fail validation for invalid plugin provided: array 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.plugins[0] should be one of these:
object { apply, … } | function
-> Plugin of type object or instanceof Function
Details:
* configuration.plugins[0] should be an object:
object { apply, … }
-> Plugin instance
* configuration.plugins[0] should be an instance of function
-> Function acting as plugin."
`;
exports[`Validation should fail validation for invalid plugin provided: bool 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.plugins[0] should be one of these:
object { apply, … } | function
-> Plugin of type object or instanceof Function
Details:
* configuration.plugins[0] should be an object:
object { apply, … }
-> Plugin instance
* configuration.plugins[0] should be an instance of function
-> Function acting as plugin."
`;
exports[`Validation should fail validation for invalid plugin provided: string 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.plugins[0] should be one of these:
object { apply, … } | function
-> Plugin of type object or instanceof Function
Details:
* configuration.plugins[0] should be an object:
object { apply, … }
-> Plugin instance
* configuration.plugins[0] should be an instance of function
-> Function acting as plugin."
`;
exports[`Validation should fail validation for items 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.itemsKeyword[0] should be a integer."
`;
exports[`Validation should fail validation for items 2`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.itemsKeyword2[0] should be a integer."
`;
exports[`Validation should fail validation for items and additionalItems #2 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.additionalItemsWithoutType2 should be an array:
[any, ...]"
`;
exports[`Validation should fail validation for items and additionalItems #3 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.additionalItemsWithoutType3 should be an array:
[string, string, ...] (additional items should be boolean | integer)"
`;
exports[`Validation should fail validation for items and additionalItems 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.additionalItemsWithoutType should be an array:
[integer, ...]"
`;
exports[`Validation should fail validation for maxItems 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.customObject.maxItems should not have more than 3 items."
`;
exports[`Validation should fail validation for maxItems Keyword 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.maxItemsKeyword should not have more than 2 items."
`;
exports[`Validation should fail validation for maxLength 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.customObject.maxLength should not be longer than 3 characters."
`;
exports[`Validation should fail validation for maxProperties 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.customObject.maxProperties should not have more than 3 properties."
`;
exports[`Validation should fail validation for maxProperties 2`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.maxPropertiesKeyword should not have more than 2 properties."
`;
exports[`Validation should fail validation for maxProperties and minProperties #2 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.maxPropertiesAndMinProperties should not have fewer than 3 properties."
`;
exports[`Validation should fail validation for maxProperties and minProperties #3 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.maxPropertiesAndMinProperties should not have more than 5 properties."
`;
exports[`Validation should fail validation for maxProperties and minProperties 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.maxPropertiesAndMinProperties should be an object:
object { foo?, bar?, … } (should not have fewer than 3 properties, should not have more than 5 properties)"
`;
exports[`Validation should fail validation for maxProperties without object type 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.maxPropertiesWithoutType should not have more than 0 properties."
`;
exports[`Validation should fail validation for maximum 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.customObject.maximumKeyword should be <= 3."
`;
exports[`Validation should fail validation for min length 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.minLengthTwo should not be shorter than 2 characters."
`;
exports[`Validation should fail validation for min properties 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.entry should be an non-empty object.
-> Multiple entry bundles are created. The key is the chunk name. The value can be a string or an array."
`;
exports[`Validation should fail validation for minItems Keyword 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.minItemsKeyword should not have fewer than 2 items."
`;
exports[`Validation should fail validation for minProperties 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.minPropertiesKeyword should not have fewer than 2 properties."
`;
exports[`Validation should fail validation for minimum 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.customObject.minimumKeyword should be >= 3."
`;
exports[`Validation should fail validation for missing stats option 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.stats has an unknown property 'foobar'. These properties are valid:
object {...}"
`;
exports[`Validation should fail validation for module 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.module.rules[0].compiler should be one of these:
RegExp | non-empty string | function | [(recursive), ...] | object { and?, exclude?, include?, not?, or?, test? } | [RegExp | non-empty string | function | [(recursive), ...] | object { and?, exclude?, include?, not?, or?, test? }, ...]
-> One or multiple rule conditions
Details:
* configuration.module.rules[0].compiler should be an instance of RegExp.
* configuration.module.rules[0].compiler should be a non-empty string.
* configuration.module.rules[0].compiler should be an instance of function.
* configuration.module.rules[0].compiler should be an array:
[RegExp | non-empty string | function | [(recursive), ...] | object { and?, exclude?, include?, not?, or?, test? }, ...]
* configuration.module.rules[0].compiler should be an object:
object { and?, exclude?, include?, not?, or?, test? }
* configuration.module.rules[0].compiler should be one of these:
RegExp | non-empty string | function | [(recursive), ...] | object { and?, exclude?, include?, not?, or?, test? }
* configuration.module.rules[0].compiler should be an array:
[RegExp | non-empty string | function | [(recursive), ...] | object { and?, exclude?, include?, not?, or?, test? }, ...]"
`;
exports[`Validation should fail validation for multiple configurations 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration[0].entry[0] should be a non-empty string.
-> A non-empty string
- configuration[1].output.filename should be one of these:
string | function
-> Specifies the name of each output file on disk. You must **not** specify an absolute path here! The \`output.path\` option determines the location on disk the files are written to, filename is used solely for naming the individual files.
Details:
* configuration[1].output.filename should be a string.
* configuration[1].output.filename should be an instance of function."
`;
exports[`Validation should fail validation for multiple errors 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.entry[0] should be a non-empty string.
-> A non-empty string
- configuration.output.filename should be one of these:
string | function
-> Specifies the name of each output file on disk. You must **not** specify an absolute path here! The \`output.path\` option determines the location on disk the files are written to, filename is used solely for naming the individual files.
Details:
* configuration.output.filename should be a string.
* configuration.output.filename should be an instance of function."
`;
exports[`Validation should fail validation for multiple types 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.multipleTypes should be:
number | string"
`;
exports[`Validation should fail validation for multiple types in array 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.arrayType2[3] should be:
number | string | boolean"
`;
exports[`Validation should fail validation for multiple types in contains 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.multipleContains should contains at least one number | string | boolean item."
`;
exports[`Validation should fail validation for multipleOf 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.customObject.multipleOfKeyword should be multiple of 5."
`;
exports[`Validation should fail validation for multipleOf with minimum and maximum 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.multipleOfProp should be a number (should be >= 5, should be <= 20, should be multiple of 5)."
`;
exports[`Validation should fail validation for non empty object #2 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.nonEmptyObject2 should be an object:
object { … }"
`;
exports[`Validation should fail validation for non empty object 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.nonEmptyObject should be an object:
object { bar? }"
`;
exports[`Validation should fail validation for non empty string in object with anyOf 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.allOfRef.aliasFields should be an array:
[non-empty string | [non-empty string, ...], ...]
-> Fields in the description file (package.json) which are used to redirect requests inside the module"
`;
exports[`Validation should fail validation for null configuration 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration should be an object:
object { amd?, bail?, cache?, context?, dependencies?, devServer?, devtool?, entry?, externals?, loader?, mode?, module?, name?, node?, optimization?, output?, parallelism?, performance?, plugins?, profile?, recordsInputPath?, recordsOutputPath?, recordsPath?, resolve?, resolveLoader?, serve?, stats?, target?, watch?, watchOptions?, minLengthOne?, minLengthTwo?, integerType?, nullType?, allOfRef?, customObject?, objectType?, anyOfKeyword?, nestedArrayWithoutItems?, nestedObjectWithoutItems?, arrayType?, arrayType2?, multipleTypes?, zeroMaxItems?, multipleContains?, multipleContains2?, exclusiveMinimumKeyword?, exclusiveMaximumKeyword?, uniqueItemsKeyword?, minPropertiesKeyword?, maxPropertiesKeyword?, requiredKeyword?, requiredKeywordWithAdditionalProperties?, enumKeyword?, formatMinimumKeyword?, formatMaximumKeyword?, formatExclusiveMinimumKeyword?, formatExclusiveMaximumKeyword?, formatMinMaxExclusiveMinKeyword?, formatMinMaxExclusiveMaxKeyword?, minItemsKeyword?, maxItemsKeyword?, itemsKeyword?, itemsKeyword2?, additionalItemsKeyword?, additionalItemsKeyword2?, additionalItemsKeyword3?, additionalItemsKeyword4?, propertiesKeyword?, patternPropertiesKeyword?, patternPropertiesKeyword2?, arrayWithOnlyNumber?, onlyRequired?, dependenciesKeyword?, dependenciesKeyword2?, patternRequiredKeyword?, patternRequiredKeyword2?, onlyProperties?, onlyProperties2?, onlyItems?, onlyItems2?, onlyAdditionalItems?, booleanType?, additionalPropertiesKeyword?, additionalPropertiesKeyword2?, propertyNamesKeyword?, constKeyword?, constKeyword2?, ifThenElseKeyword?, ifThenElseKeyword2?, stringKeyword?, arrayKeyword?, arrayKeyword2?, arrayKeyword3?, arrayKeyword4?, arrayKeyword5?, arrayKeyword6?, arrayKeyword7?, arrayKeyword8?, arrayKeyword9?, arrayKeyword10?, arrayKeyword11?, arrayKeyword12?, arrayKeyword13?, arrayKeyword14?, arrayKeyword15?, arrayKeyword16?, arrayKeyword17?, arrayKeyword18?, arrayKeyword19?, recursion?, extending?, longString?, integerWithMinimum?, integerWithExclusiveMinimum?, integerWithExclusiveMaximum?, numberWithMinimum?, multipleOfProp?, stringWithMinAndMaxLength?, strictFormat?, strictFormat2?, uniqueItemsProp?, numberAndDescription?, oneOfnumberAndDescriptionAndArray?, maxPropertiesAndMinProperties?, objectTest?, objectTest2?, objectTest3?, objectTest4?, objectTest5?, objectTest6?, objectTest7?, objectTest8?, objectTest9?, stringWithEmptyPattern?, likeArray?, arrayWithEmptyItemsAndEmptyAdditionalItemsAndEmptyContains?, numberWithoutType?, numberWithoutType2?, stringWithoutType?, arrayWithoutType?, additionalItemsFalse?, requiredWithoutType?, dependenciesWithoutType?, propertyNamesWithoutType?, patternRequiredWithoutType?, additionalPropertiesWithoutType?, maxPropertiesWithoutType?, justAnObject?, arrayWithAbsolutePath?, allOfKeyword?, enumWithDescription?, constWithDescription?, itemsTrue?, emptyConst?, oneConst?, constWithEmptyString?, refAndAnyOf?, additionalPropertiesInsideOneOf?, additionalPropertiesInsideOneOf2?, singleContainsItems?, objectWithPropertyDependency?, objectWithPropertyDependency2?, objectWithPropertyDependency3?, objectWithPropertyDependency4?, oneOfWithIf?, constWithArrayNotation?, constWithObjectNotation?, additionalItemsWithoutType?, additionalItemsWithoutType2?, additionalItemsWithoutType3?, containsAndAdditionalItems?, containsInsideItem?, emptyObject?, nonEmptyObject?, nonEmptyObject2? }"
`;
exports[`Validation should fail validation for null type 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.nullType should be a null."
`;
exports[`Validation should fail validation for number and description 1`] = `
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.numberAndDescription should be a number.
-> Description about option."
`;