@@ -14,7 +14,7 @@ exports[`validate options should throw an error on the "options" option with "{"
14
14
exports [` validate options should throw an error on the "patterns" option with "" value 1` ] = `
15
15
"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
16
16
- 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 )"
18
18
`;
19
19
20
20
exports [` 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 "[
40
40
exports [` validate options should throw an error on the "patterns" option with "[{ " from" :" dir" ," info" :" string" } ]" value 1` ] = `
41
41
"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
42
42
- 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 ? }
44
44
Details :
45
45
* options .patterns [0 ].info should be one of these :
46
46
object { … } | function
@@ -53,7 +53,7 @@ exports[`validate options should throw an error on the "patterns" option with "[
53
53
exports [` validate options should throw an error on the "patterns" option with "[{ " from" :" dir" ," info" :true } ]" value 1` ] = `
54
54
"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
55
55
- 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 ? }
57
57
Details :
58
58
* options .patterns [0 ].info should be one of these :
59
59
object { … } | function
@@ -88,7 +88,7 @@ exports[`validate options should throw an error on the "patterns" option with "[
88
88
exports [` validate options should throw an error on the "patterns" option with "[{ " from" :" test.txt" ," to" :" dir" ," context" :" context" ," transform" :true } ]" value 1` ] = `
89
89
"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
90
90
- 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 ? }
92
92
Details :
93
93
* options .patterns [0 ].transform should be one of these :
94
94
function | object { transformer ? , cache ? }
@@ -103,10 +103,25 @@ exports[`validate options should throw an error on the "patterns" option with "[
103
103
- options.patterns[0].context should be a string."
104
104
` ;
105
105
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
+
106
121
exports [` validate options should throw an error on the "patterns" option with "[{ " from" :" test.txt" ," to" :true ," context" :" context" } ]" value 1` ] = `
107
122
"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
108
123
- 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 ? }
110
125
Details :
111
126
* options .patterns [0 ].to should be one of these :
112
127
string | function
@@ -134,71 +149,71 @@ exports[`validate options should throw an error on the "patterns" option with "[
134
149
exports [` validate options should throw an error on the "patterns" option with "{ } " value 1` ] = `
135
150
"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
136
151
- 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 )"
138
153
`;
139
154
140
155
exports [` validate options should throw an error on the "patterns" option with "true" value 1` ] = `
141
156
"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
142
157
- 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 )"
144
159
`;
145
160
146
161
exports [` validate options should throw an error on the "patterns" option with "true" value 2` ] = `
147
162
"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
148
163
- 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 )"
150
165
`;
151
166
152
167
exports [` validate options should throw an error on the "patterns" option with "undefined" value 1` ] = `
153
168
"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
154
169
- 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 )"
156
171
`;
157
172
158
173
exports [` validate options should throw an error on the "unknown" option with "/test/" value 1` ] = `
159
174
"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
160
175
- 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 )"
162
177
`;
163
178
164
179
exports [` validate options should throw an error on the "unknown" option with "[]" value 1` ] = `
165
180
"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
166
181
- 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 )"
168
183
`;
169
184
170
185
exports [` validate options should throw an error on the "unknown" option with "{ " foo" :" bar" } " value 1` ] = `
171
186
"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
172
187
- 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 )"
174
189
`;
175
190
176
191
exports [` validate options should throw an error on the "unknown" option with "{ } " value 1` ] = `
177
192
"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
178
193
- 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 )"
180
195
`;
181
196
182
197
exports [` validate options should throw an error on the "unknown" option with "1" value 1` ] = `
183
198
"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
184
199
- 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 )"
186
201
`;
187
202
188
203
exports [` validate options should throw an error on the "unknown" option with "false" value 1` ] = `
189
204
"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
190
205
- 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 )"
192
207
`;
193
208
194
209
exports [` validate options should throw an error on the "unknown" option with "test" value 1` ] = `
195
210
"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
196
211
- 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 )"
198
213
`;
199
214
200
215
exports [` validate options should throw an error on the "unknown" option with "true" value 1` ] = `
201
216
"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
202
217
- 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 )"
204
219
`;
0 commit comments