@@ -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 ? , info ? , transform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
17+ [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , priority ? , info ? , transform ? , 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` ] = `
@@ -40,7 +40,7 @@ exports[`validate options should throw an error on the "patterns" option with "[
4040exports [` validate options should throw an error on the "patterns" option with "[{ " from" :" dir" ," info" :" string" } ]" value 1` ] = `
4141"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
4242 - options.patterns[0] should be one of these:
43- non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , info ? , transform ? , transformPath ? , noErrorOnMissing ? }
43+ non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , priority ? , info ? , transform ? , transformPath ? , noErrorOnMissing ? }
4444 Details :
4545 * options .patterns [0 ].info should be one of these :
4646 object { … } | function
@@ -53,7 +53,7 @@ exports[`validate options should throw an error on the "patterns" option with "[
5353exports [` validate options should throw an error on the "patterns" option with "[{ " from" :" dir" ," info" :true } ]" value 1` ] = `
5454"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
5555 - options.patterns[0] should be one of these:
56- non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , info ? , transform ? , transformPath ? , noErrorOnMissing ? }
56+ non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , priority ? , info ? , transform ? , transformPath ? , noErrorOnMissing ? }
5757 Details :
5858 * options .patterns [0 ].info should be one of these :
5959 object { … } | function
@@ -88,7 +88,7 @@ exports[`validate options should throw an error on the "patterns" option with "[
8888exports [` validate options should throw an error on the "patterns" option with "[{ " from" :" test.txt" ," to" :" dir" ," context" :" context" ," transform" :true } ]" value 1` ] = `
8989"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
9090 - options.patterns[0] should be one of these:
91- non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , info ? , transform ? , transformPath ? , noErrorOnMissing ? }
91+ non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , priority ? , info ? , transform ? , transformPath ? , noErrorOnMissing ? }
9292 Details :
9393 * options .patterns [0 ].transform should be one of these :
9494 function | object { transformer ? , cache ? }
@@ -103,10 +103,25 @@ exports[`validate options should throw an error on the "patterns" option with "[
103103 - options.patterns[0].context should be a string."
104104` ;
105105
106+ exports [` validate options should throw an error on the "patterns" option with "[{ " from" :" test.txt" ," to" :" dir" ," priority" :" 5" } ]" value 1` ] = `
107+ "Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
108+ - options.patterns[0].priority should be a number."
109+ ` ;
110+
111+ exports [` validate options should throw an error on the "patterns" option with "[{ " from" :" test.txt" ," to" :" dir" ," priority" :true } ]" value 1` ] = `
112+ "Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
113+ - options.patterns[0].priority should be a number."
114+ ` ;
115+
116+ exports [` validate options should throw an error on the "patterns" option with "[{ " from" :" test.txt" ," to" :" dir" } ]" value 1` ] = `
117+ "Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
118+ - options.patterns[0].priority should be a number."
119+ ` ;
120+
106121exports [` validate options should throw an error on the "patterns" option with "[{ " from" :" test.txt" ," to" :true ," context" :" context" } ]" value 1` ] = `
107122"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
108123 - options.patterns[0] should be one of these:
109- non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , info ? , transform ? , transformPath ? , noErrorOnMissing ? }
124+ non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , priority ? , info ? , transform ? , transformPath ? , noErrorOnMissing ? }
110125 Details :
111126 * options .patterns [0 ].to should be one of these :
112127 string | function
@@ -134,71 +149,71 @@ exports[`validate options should throw an error on the "patterns" option with "[
134149exports [` validate options should throw an error on the "patterns" option with "{ } " value 1` ] = `
135150"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
136151 - options.patterns should be an array:
137- [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , info ? , transform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
152+ [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , priority ? , info ? , transform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
138153`;
139154
140155exports [` validate options should throw an error on the "patterns" option with "true" value 1` ] = `
141156"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
142157 - options.patterns should be an array:
143- [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , info ? , transform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
158+ [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , priority ? , info ? , transform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
144159`;
145160
146161exports [` validate options should throw an error on the "patterns" option with "true" value 2` ] = `
147162"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
148163 - options.patterns should be an array:
149- [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , info ? , transform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
164+ [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , priority ? , info ? , transform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
150165`;
151166
152167exports [` validate options should throw an error on the "patterns" option with "undefined" value 1` ] = `
153168"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
154169 - options misses the property 'patterns'. Should be:
155- [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , info ? , transform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
170+ [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , priority ? , info ? , transform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
156171`;
157172
158173exports [` validate options should throw an error on the "unknown" option with "/test/" value 1` ] = `
159174"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
160175 - options misses the property 'patterns'. Should be:
161- [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , info ? , transform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
176+ [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , priority ? , info ? , transform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
162177`;
163178
164179exports [` validate options should throw an error on the "unknown" option with "[]" value 1` ] = `
165180"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
166181 - options misses the property 'patterns'. Should be:
167- [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , info ? , transform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
182+ [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , priority ? , info ? , transform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
168183`;
169184
170185exports [` validate options should throw an error on the "unknown" option with "{ " foo" :" bar" } " value 1` ] = `
171186"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
172187 - options misses the property 'patterns'. Should be:
173- [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , info ? , transform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
188+ [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , priority ? , info ? , transform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
174189`;
175190
176191exports [` validate options should throw an error on the "unknown" option with "{ } " value 1` ] = `
177192"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
178193 - options misses the property 'patterns'. Should be:
179- [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , info ? , transform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
194+ [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , priority ? , info ? , transform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
180195`;
181196
182197exports [` validate options should throw an error on the "unknown" option with "1" value 1` ] = `
183198"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
184199 - options misses the property 'patterns'. Should be:
185- [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , info ? , transform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
200+ [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , priority ? , info ? , transform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
186201`;
187202
188203exports [` validate options should throw an error on the "unknown" option with "false" value 1` ] = `
189204"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
190205 - options misses the property 'patterns'. Should be:
191- [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , info ? , transform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
206+ [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , priority ? , info ? , transform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
192207`;
193208
194209exports [` validate options should throw an error on the "unknown" option with "test" value 1` ] = `
195210"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
196211 - options misses the property 'patterns'. Should be:
197- [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , info ? , transform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
212+ [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , priority ? , info ? , transform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
198213`;
199214
200215exports [` validate options should throw an error on the "unknown" option with "true" value 1` ] = `
201216"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
202217 - options misses the property 'patterns'. Should be:
203- [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , info ? , transform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
218+ [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , priority ? , info ? , transform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
204219`;
0 commit comments