@@ -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 ? , 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 ? , 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,11 @@ 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" :" test.txt" ," filter" :" test" } ]" 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].filter should be an instance of function."
43+ ` ;
44+
4045exports [` validate options should throw an error on the "patterns" option with "[{ " from" :" test.txt" ," to" :" dir" ," context" :" context" ," cacheTransform" :{" foo" :" bar" }} ]" value 1` ] = `
4146"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
4247 - options.patterns[0].cacheTransform has an unknown property 'foo'. These properties are valid:
@@ -72,7 +77,7 @@ exports[`validate options should throw an error on the "patterns" option with "[
7277exports [` validate options should throw an error on the "patterns" option with "[{ " from" :" test.txt" ," to" :" dir" ," context" :" context" } ]" value 1` ] = `
7378"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
7479 - options.patterns[0] should be one of these:
75- non-empty string | object { from , to ? , context ? , globOptions ? , toType ? , force ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }
80+ non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }
7681 Details :
7782 * options .patterns [0 ].cacheTransform should be one of these :
7883 boolean | string | object { directory?, keys? }
@@ -112,71 +117,71 @@ exports[`validate options should throw an error on the "patterns" option with "[
112117exports [` validate options should throw an error on the "patterns" option with "{ } " value 1` ] = `
113118"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
114119 - options.patterns should be an array:
115- [non-empty string | object { from , to ? , context ? , globOptions ? , toType ? , force ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
120+ [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
116121`;
117122
118123exports [` validate options should throw an error on the "patterns" option with "true" value 1` ] = `
119124"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
120125 - options.patterns should be an array:
121- [non-empty string | object { from , to ? , context ? , globOptions ? , toType ? , force ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
126+ [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
122127`;
123128
124129exports [` validate options should throw an error on the "patterns" option with "true" value 2` ] = `
125130"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
126131 - options.patterns should be an array:
127- [non-empty string | object { from , to ? , context ? , globOptions ? , toType ? , force ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
132+ [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
128133`;
129134
130135exports [` validate options should throw an error on the "patterns" option with "undefined" value 1` ] = `
131136"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
132137 - options misses the property 'patterns'. Should be:
133- [non-empty string | object { from , to ? , context ? , globOptions ? , toType ? , force ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
138+ [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
134139`;
135140
136141exports [` validate options should throw an error on the "unknown" option with "/test/" value 1` ] = `
137142"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
138143 - options misses the property 'patterns'. Should be:
139- [non-empty string | object { from , to ? , context ? , globOptions ? , toType ? , force ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
144+ [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
140145`;
141146
142147exports [` validate options should throw an error on the "unknown" option with "[]" value 1` ] = `
143148"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
144149 - options misses the property 'patterns'. Should be:
145- [non-empty string | object { from , to ? , context ? , globOptions ? , toType ? , force ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
150+ [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
146151`;
147152
148153exports [` validate options should throw an error on the "unknown" option with "{ " foo" :" bar" } " value 1` ] = `
149154"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
150155 - options misses the property 'patterns'. Should be:
151- [non-empty string | object { from , to ? , context ? , globOptions ? , toType ? , force ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
156+ [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
152157`;
153158
154159exports [` validate options should throw an error on the "unknown" option with "{ } " value 1` ] = `
155160"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
156161 - options misses the property 'patterns'. Should be:
157- [non-empty string | object { from , to ? , context ? , globOptions ? , toType ? , force ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
162+ [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
158163`;
159164
160165exports [` validate options should throw an error on the "unknown" option with "1" value 1` ] = `
161166"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
162167 - options misses the property 'patterns'. Should be:
163- [non-empty string | object { from , to ? , context ? , globOptions ? , toType ? , force ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
168+ [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
164169`;
165170
166171exports [` validate options should throw an error on the "unknown" option with "false" value 1` ] = `
167172"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
168173 - options misses the property 'patterns'. Should be:
169- [non-empty string | object { from , to ? , context ? , globOptions ? , toType ? , force ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
174+ [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
170175`;
171176
172177exports [` validate options should throw an error on the "unknown" option with "test" value 1` ] = `
173178"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
174179 - options misses the property 'patterns'. Should be:
175- [non-empty string | object { from , to ? , context ? , globOptions ? , toType ? , force ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
180+ [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
176181`;
177182
178183exports [` validate options should throw an error on the "unknown" option with "true" value 1` ] = `
179184"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
180185 - options misses the property 'patterns'. Should be:
181- [non-empty string | object { from , to ? , context ? , globOptions ? , toType ? , force ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
186+ [non-empty string | object { from , to ? , context ? , globOptions ? , filter ? , toType ? , force ? , flatten ? , transform ? , cacheTransform ? , transformPath ? , noErrorOnMissing ? }, ... ] (should not have fewer than 1 item )"
182187`;
0 commit comments