@@ -128,6 +128,7 @@ describe('util', () => {
128
128
github_ref : '' ,
129
129
github_repository : '' ,
130
130
github_token : '' ,
131
+ input_working_directory : undefined ,
131
132
input_append_body : false ,
132
133
input_body : undefined ,
133
134
input_body_path : undefined ,
@@ -156,6 +157,7 @@ describe('util', () => {
156
157
github_ref : '' ,
157
158
github_repository : '' ,
158
159
github_token : '' ,
160
+ input_working_directory : undefined ,
159
161
input_append_body : false ,
160
162
input_body : undefined ,
161
163
input_body_path : undefined ,
@@ -183,6 +185,7 @@ describe('util', () => {
183
185
github_ref : '' ,
184
186
github_repository : '' ,
185
187
github_token : '' ,
188
+ input_working_directory : undefined ,
186
189
input_append_body : false ,
187
190
input_body : undefined ,
188
191
input_body_path : undefined ,
@@ -211,6 +214,7 @@ describe('util', () => {
211
214
github_ref : '' ,
212
215
github_repository : '' ,
213
216
github_token : '' ,
217
+ input_working_directory : undefined ,
214
218
input_append_body : false ,
215
219
input_body : undefined ,
216
220
input_body_path : undefined ,
@@ -243,6 +247,7 @@ describe('util', () => {
243
247
github_ref : '' ,
244
248
github_repository : '' ,
245
249
github_token : 'env-token' ,
250
+ input_working_directory : undefined ,
246
251
input_append_body : false ,
247
252
input_body : undefined ,
248
253
input_body_path : undefined ,
@@ -272,6 +277,7 @@ describe('util', () => {
272
277
github_ref : '' ,
273
278
github_repository : '' ,
274
279
github_token : 'input-token' ,
280
+ input_working_directory : undefined ,
275
281
input_append_body : false ,
276
282
input_body : undefined ,
277
283
input_body_path : undefined ,
@@ -300,6 +306,7 @@ describe('util', () => {
300
306
github_ref : '' ,
301
307
github_repository : '' ,
302
308
github_token : '' ,
309
+ input_working_directory : undefined ,
303
310
input_append_body : false ,
304
311
input_body : undefined ,
305
312
input_body_path : undefined ,
@@ -327,6 +334,7 @@ describe('util', () => {
327
334
github_ref : '' ,
328
335
github_repository : '' ,
329
336
github_token : '' ,
337
+ input_working_directory : undefined ,
330
338
input_append_body : false ,
331
339
input_body : undefined ,
332
340
input_body_path : undefined ,
@@ -354,6 +362,7 @@ describe('util', () => {
354
362
github_ref : '' ,
355
363
github_repository : '' ,
356
364
github_token : '' ,
365
+ input_working_directory : undefined ,
357
366
input_append_body : true ,
358
367
input_body : undefined ,
359
368
input_body_path : undefined ,
@@ -388,6 +397,10 @@ describe('util', () => {
388
397
'tests/data/foo/bar.txt' ,
389
398
] ) ;
390
399
} ) ;
400
+
401
+ it ( 'resolves files relative to working_directory' , async ( ) => {
402
+ assert . deepStrictEqual ( paths ( [ 'data/**/*' ] , 'tests' ) , [ 'tests/data/foo/bar.txt' ] ) ;
403
+ } ) ;
391
404
} ) ;
392
405
393
406
describe ( 'unmatchedPatterns' , ( ) => {
@@ -397,6 +410,12 @@ describe('util', () => {
397
410
[ 'tests/data/does/not/exist/*' ] ,
398
411
) ;
399
412
} ) ;
413
+
414
+ it ( 'resolves unmatched relative to working_directory' , async ( ) => {
415
+ assert . deepStrictEqual ( unmatchedPatterns ( [ 'data/does/not/exist/*' ] , 'tests' ) , [
416
+ 'data/does/not/exist/*' ,
417
+ ] ) ;
418
+ } ) ;
400
419
} ) ;
401
420
402
421
describe ( 'replaceSpacesWithDots' , ( ) => {
0 commit comments