@@ -106,12 +106,9 @@ describe('Path Resolve', () => {
106106 [ `${ mockFixturePath } /package.json` ] : '{}' ,
107107 } )
108108
109- const actual = await sortedGetPackageFilesFullScans (
110- mockFixturePath ,
111- [ '.' ] ,
112- globPatterns ,
113- undefined ,
114- )
109+ const actual = await sortedGetPackageFilesFullScans ( [ '.' ] , globPatterns , {
110+ cwd : mockFixturePath ,
111+ } )
115112 expect ( actual . map ( normalizePath ) ) . toEqual ( [
116113 `${ mockFixturePath } /package.json` ,
117114 ] )
@@ -126,14 +123,16 @@ describe('Path Resolve', () => {
126123 } )
127124
128125 const actual = await sortedGetPackageFilesFullScans (
129- mockFixturePath ,
130126 [ '**/*' ] ,
131127 globPatterns ,
132128 {
133- version : 2 ,
134- projectIgnorePaths : [ 'bar/*' , '!bar/package.json' ] ,
135- issueRules : { } ,
136- githubApp : { } ,
129+ cwd : mockFixturePath ,
130+ config : {
131+ version : 2 ,
132+ projectIgnorePaths : [ 'bar/*' , '!bar/package.json' ] ,
133+ issueRules : { } ,
134+ githubApp : { } ,
135+ } ,
137136 } ,
138137 )
139138 expect ( actual . map ( normalizePath ) ) . toEqual ( [
@@ -153,10 +152,9 @@ describe('Path Resolve', () => {
153152 } )
154153
155154 const actual = await sortedGetPackageFilesFullScans (
156- mockFixturePath ,
157155 [ '**/*' ] ,
158156 globPatterns ,
159- undefined ,
157+ { cwd : mockFixturePath } ,
160158 )
161159 expect ( actual . map ( normalizePath ) ) . toEqual ( [
162160 `${ mockFixturePath } /bar/package.json` ,
@@ -182,10 +180,9 @@ describe('Path Resolve', () => {
182180 } )
183181
184182 const actual = await sortedGetPackageFilesFullScans (
185- mockFixturePath ,
186183 [ '**/*' ] ,
187184 globPatterns ,
188- undefined ,
185+ { cwd : mockFixturePath } ,
189186 )
190187 expect ( actual . map ( normalizePath ) ) . toEqual ( [
191188 `${ mockFixturePath } /foo/package-lock.json` ,
@@ -202,10 +199,9 @@ describe('Path Resolve', () => {
202199 } )
203200
204201 const actual = await sortedGetPackageFilesFullScans (
205- mockFixturePath ,
206202 [ '**/*' ] ,
207203 globPatterns ,
208- undefined ,
204+ { cwd : mockFixturePath } ,
209205 )
210206 expect ( actual . map ( normalizePath ) ) . toEqual ( [
211207 `${ mockFixturePath } /foo/package-lock.json` ,
@@ -221,10 +217,9 @@ describe('Path Resolve', () => {
221217 } )
222218
223219 const actual = await sortedGetPackageFilesFullScans (
224- mockFixturePath ,
225220 [ '**/*' ] ,
226221 globPatterns ,
227- undefined ,
222+ { cwd : mockFixturePath } ,
228223 )
229224 expect ( actual . map ( normalizePath ) ) . toEqual ( [ ] )
230225 } )
@@ -236,10 +231,9 @@ describe('Path Resolve', () => {
236231 } )
237232
238233 const actual = await sortedGetPackageFilesFullScans (
239- mockFixturePath ,
240234 [ '**/*' ] ,
241235 globPatterns ,
242- undefined ,
236+ { cwd : mockFixturePath } ,
243237 )
244238 expect ( actual . map ( normalizePath ) ) . toEqual ( [
245239 `${ mockFixturePath } /package-lock.json` ,
@@ -253,10 +247,9 @@ describe('Path Resolve', () => {
253247 } )
254248
255249 const actual = await sortedGetPackageFilesFullScans (
256- mockFixturePath ,
257250 [ '**/*' ] ,
258251 globPatterns ,
259- undefined ,
252+ { cwd : mockFixturePath } ,
260253 )
261254 expect ( actual . map ( normalizePath ) ) . toEqual ( [
262255 `${ mockFixturePath } /package.json` ,
@@ -270,10 +263,9 @@ describe('Path Resolve', () => {
270263 } )
271264
272265 const actual = await sortedGetPackageFilesFullScans (
273- mockFixturePath ,
274266 [ '**/*' ] ,
275267 globPatterns ,
276- undefined ,
268+ { cwd : mockFixturePath } ,
277269 )
278270 expect ( actual . map ( normalizePath ) ) . toEqual ( [
279271 `${ mockFixturePath } /package.json` ,
@@ -293,10 +285,9 @@ describe('Path Resolve', () => {
293285 } )
294286
295287 const actual = await sortedGetPackageFilesFullScans (
296- mockFixturePath ,
297288 [ '**/*' ] ,
298289 globPatterns ,
299- undefined ,
290+ { cwd : mockFixturePath } ,
300291 )
301292 expect ( actual . map ( normalizePath ) ) . toEqual ( [
302293 `${ mockFixturePath } /abc/package.json` ,
0 commit comments