@@ -14,7 +14,7 @@ exports[`validate options should throw an error on the "options" option with "{"
1414exports [` validate options should throw an error on the "patterns" option with "" value 1` ] = `
1515"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
1616 - options.patterns should be an array:
17- [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
17+ [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , info ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
1818`;
1919
2020exports [` validate options should throw an error on the "patterns" option with "[""]" value 1` ] = `
@@ -37,6 +37,32 @@ exports[`validate options should throw an error on the "patterns" option with "[
3737 - options.patterns[0].from should be an non-empty string."
3838` ;
3939
40+ exports [` validate options should throw an error on the "patterns" option with "[{ " from" :" dir" ," info" :" string" } ]" value 1` ] = `
41+ "Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
42+ - options.patterns[0] should be one of these:
43+ non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , info ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }
44+ Details :
45+ * options .patterns [0 ].info should be one of these :
46+ object { … } | function
47+ Details:
48+ * options.patterns[0].info should be an object:
49+ object { … }
50+ * options .patterns [0 ].info should be an instance of function ."
51+ `;
52+
53+ exports [` validate options should throw an error on the "patterns" option with "[{ " from" :" dir" ," info" :true } ]" value 1` ] = `
54+ "Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
55+ - options.patterns[0] should be one of these:
56+ non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , info ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }
57+ Details :
58+ * options .patterns [0 ].info should be one of these :
59+ object { … } | function
60+ Details:
61+ * options.patterns[0].info should be an object:
62+ object { … }
63+ * options .patterns [0 ].info should be an instance of function ."
64+ `;
65+
4066exports [` validate options should throw an error on the "patterns" option with "[{ " from" :" test.txt" ," filter" :" test" } ]" value 1` ] = `
4167"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
4268 - options.patterns[0].filter should be an instance of function."
@@ -77,7 +103,7 @@ exports[`validate options should throw an error on the "patterns" option with "[
77103exports [` validate options should throw an error on the "patterns" option with "[{ " from" :" test.txt" ," to" :" dir" ," context" :" context" } ]" value 1` ] = `
78104"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
79105 - options.patterns[0] should be one of these:
80- non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }
106+ non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , info ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }
81107 Details :
82108 * options .patterns [0 ].cacheTransform should be one of these :
83109 boolean | string | object { directory?, keys? }
@@ -96,7 +122,7 @@ exports[`validate options should throw an error on the "patterns" option with "[
96122exports [` validate options should throw an error on the "patterns" option with "[{ " from" :" test.txt" ," to" :true ," context" :" context" } ]" value 1` ] = `
97123"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
98124 - options.patterns[0] should be one of these:
99- non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }
125+ non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , info ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }
100126 Details :
101127 * options .patterns [0 ].to should be one of these :
102128 string | function
@@ -124,71 +150,71 @@ exports[`validate options should throw an error on the "patterns" option with "[
124150exports [` validate options should throw an error on the "patterns" option with "{ } " value 1` ] = `
125151"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
126152 - options.patterns should be an array:
127- [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
153+ [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , info ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
128154`;
129155
130156exports [` validate options should throw an error on the "patterns" option with "true" value 1` ] = `
131157"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
132158 - options.patterns should be an array:
133- [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
159+ [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , info ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
134160`;
135161
136162exports [` validate options should throw an error on the "patterns" option with "true" value 2` ] = `
137163"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
138164 - options.patterns should be an array:
139- [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
165+ [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , info ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
140166`;
141167
142168exports [` validate options should throw an error on the "patterns" option with "undefined" value 1` ] = `
143169"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
144170 - options misses the property 'patterns'. Should be:
145- [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
171+ [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , info ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
146172`;
147173
148174exports [` validate options should throw an error on the "unknown" option with "/test/" value 1` ] = `
149175"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
150176 - options misses the property 'patterns'. Should be:
151- [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
177+ [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , info ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
152178`;
153179
154180exports [` validate options should throw an error on the "unknown" option with "[]" value 1` ] = `
155181"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
156182 - options misses the property 'patterns'. Should be:
157- [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
183+ [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , info ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
158184`;
159185
160186exports [` validate options should throw an error on the "unknown" option with "{ " foo" :" bar" } " value 1` ] = `
161187"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
162188 - options misses the property 'patterns'. Should be:
163- [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
189+ [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , info ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
164190`;
165191
166192exports [` validate options should throw an error on the "unknown" option with "{ } " value 1` ] = `
167193"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
168194 - options misses the property 'patterns'. Should be:
169- [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
195+ [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , info ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
170196`;
171197
172198exports [` validate options should throw an error on the "unknown" option with "1" value 1` ] = `
173199"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
174200 - options misses the property 'patterns'. Should be:
175- [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
201+ [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , info ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
176202`;
177203
178204exports [` validate options should throw an error on the "unknown" option with "false" value 1` ] = `
179205"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
180206 - options misses the property 'patterns'. Should be:
181- [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
207+ [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , info ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
182208`;
183209
184210exports [` validate options should throw an error on the "unknown" option with "test" value 1` ] = `
185211"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
186212 - options misses the property 'patterns'. Should be:
187- [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
213+ [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , info ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
188214`;
189215
190216exports [` validate options should throw an error on the "unknown" option with "true" value 1` ] = `
191217"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
192218 - options misses the property 'patterns'. Should be:
193- [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
219+ [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , info ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
194220`;
0 commit comments