@@ -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 ? , 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 )"
18
18
`;
19
19
20
20
exports [` 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 "[
37
37
- options.patterns[0].from should be an non-empty string."
38
38
` ;
39
39
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
+
40
66
exports [` validate options should throw an error on the "patterns" option with "[{ " from" :" test.txt" ," filter" :" test" } ]" value 1` ] = `
41
67
"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
42
68
- 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 "[
77
103
exports [` validate options should throw an error on the "patterns" option with "[{ " from" :" test.txt" ," to" :" dir" ," context" :" context" } ]" value 1` ] = `
78
104
"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
79
105
- 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 ? }
81
107
Details :
82
108
* options .patterns [0 ].cacheTransform should be one of these :
83
109
boolean | string | object { directory?, keys? }
@@ -96,7 +122,7 @@ exports[`validate options should throw an error on the "patterns" option with "[
96
122
exports [` validate options should throw an error on the "patterns" option with "[{ " from" :" test.txt" ," to" :true ," context" :" context" } ]" value 1` ] = `
97
123
"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
98
124
- 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 ? }
100
126
Details :
101
127
* options .patterns [0 ].to should be one of these :
102
128
string | function
@@ -124,71 +150,71 @@ exports[`validate options should throw an error on the "patterns" option with "[
124
150
exports [` validate options should throw an error on the "patterns" option with "{ } " value 1` ] = `
125
151
"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
126
152
- 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 )"
128
154
`;
129
155
130
156
exports [` validate options should throw an error on the "patterns" option with "true" value 1` ] = `
131
157
"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
132
158
- 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 )"
134
160
`;
135
161
136
162
exports [` validate options should throw an error on the "patterns" option with "true" value 2` ] = `
137
163
"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
138
164
- 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 )"
140
166
`;
141
167
142
168
exports [` validate options should throw an error on the "patterns" option with "undefined" value 1` ] = `
143
169
"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
144
170
- 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 )"
146
172
`;
147
173
148
174
exports [` validate options should throw an error on the "unknown" option with "/test/" value 1` ] = `
149
175
"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
150
176
- 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 )"
152
178
`;
153
179
154
180
exports [` validate options should throw an error on the "unknown" option with "[]" value 1` ] = `
155
181
"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
156
182
- 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 )"
158
184
`;
159
185
160
186
exports [` validate options should throw an error on the "unknown" option with "{ " foo" :" bar" } " value 1` ] = `
161
187
"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
162
188
- 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 )"
164
190
`;
165
191
166
192
exports [` validate options should throw an error on the "unknown" option with "{ } " value 1` ] = `
167
193
"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
168
194
- 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 )"
170
196
`;
171
197
172
198
exports [` validate options should throw an error on the "unknown" option with "1" value 1` ] = `
173
199
"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
174
200
- 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 )"
176
202
`;
177
203
178
204
exports [` validate options should throw an error on the "unknown" option with "false" value 1` ] = `
179
205
"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
180
206
- 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 )"
182
208
`;
183
209
184
210
exports [` validate options should throw an error on the "unknown" option with "test" value 1` ] = `
185
211
"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
186
212
- 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 )"
188
214
`;
189
215
190
216
exports [` validate options should throw an error on the "unknown" option with "true" value 1` ] = `
191
217
"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
192
218
- 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 )"
194
220
`;
0 commit comments