@@ -118,9 +118,14 @@ describe('run', () => {
118
118
expect ( getStateSpy ) . toHaveBeenCalledTimes ( 2 ) ;
119
119
expect ( getCommandOutputSpy ) . toHaveBeenCalledTimes ( 2 ) ;
120
120
expect ( debugSpy ) . toHaveBeenCalledWith (
121
- 'yarn path is /some/random/path/yarn1 (derived from cache-dependency-path: "")'
121
+ 'Project directory "." derived from cache-dependency-path: ""'
122
+ ) ;
123
+ expect ( debugSpy ) . toHaveBeenCalledWith (
124
+ 'Consumed yarn version is 1.2.3 (working dir: ".")'
125
+ ) ;
126
+ expect ( debugSpy ) . toHaveBeenCalledWith (
127
+ 'yarn\'s cache folder "/some/random/path/yarn1" configured for the directory "."'
122
128
) ;
123
- expect ( debugSpy ) . toHaveBeenCalledWith ( 'Consumed yarn version is 1.2.3' ) ;
124
129
expect ( infoSpy ) . toHaveBeenCalledWith (
125
130
`Cache hit occurred on the primary key ${ yarnFileHash } , not saving cache.`
126
131
) ;
@@ -140,9 +145,14 @@ describe('run', () => {
140
145
expect ( getStateSpy ) . toHaveBeenCalledTimes ( 2 ) ;
141
146
expect ( getCommandOutputSpy ) . toHaveBeenCalledTimes ( 2 ) ;
142
147
expect ( debugSpy ) . toHaveBeenCalledWith (
143
- 'yarn path is /some/random/path/yarn2 (derived from cache-dependency-path: "")'
148
+ 'Project directory "." derived from cache-dependency-path: ""'
149
+ ) ;
150
+ expect ( debugSpy ) . toHaveBeenCalledWith (
151
+ 'Consumed yarn version is 2.2.3 (working dir: ".")'
152
+ ) ;
153
+ expect ( debugSpy ) . toHaveBeenCalledWith (
154
+ 'yarn\'s cache folder "/some/random/path/yarn2" configured for the directory "."'
144
155
) ;
145
- expect ( debugSpy ) . toHaveBeenCalledWith ( 'Consumed yarn version is 2.2.3' ) ;
146
156
expect ( infoSpy ) . toHaveBeenCalledWith (
147
157
`Cache hit occurred on the primary key ${ yarnFileHash } , not saving cache.`
148
158
) ;
@@ -159,7 +169,9 @@ describe('run', () => {
159
169
expect ( getInputSpy ) . toHaveBeenCalled ( ) ;
160
170
expect ( getStateSpy ) . toHaveBeenCalledTimes ( 2 ) ;
161
171
expect ( getCommandOutputSpy ) . toHaveBeenCalledTimes ( 1 ) ;
162
- expect ( debugSpy ) . toHaveBeenCalledWith ( `npm path is ${ commonPath } /npm` ) ;
172
+ expect ( debugSpy ) . toHaveBeenCalledWith (
173
+ `npm's cache folder "${ commonPath } /npm" configured for the root directory`
174
+ ) ;
163
175
expect ( infoSpy ) . toHaveBeenCalledWith (
164
176
`Cache hit occurred on the primary key ${ npmFileHash } , not saving cache.`
165
177
) ;
@@ -176,7 +188,9 @@ describe('run', () => {
176
188
expect ( getInputSpy ) . toHaveBeenCalled ( ) ;
177
189
expect ( getStateSpy ) . toHaveBeenCalledTimes ( 2 ) ;
178
190
expect ( getCommandOutputSpy ) . toHaveBeenCalledTimes ( 1 ) ;
179
- expect ( debugSpy ) . toHaveBeenCalledWith ( `pnpm path is ${ commonPath } /pnpm` ) ;
191
+ expect ( debugSpy ) . toHaveBeenCalledWith (
192
+ `pnpm's cache folder "${ commonPath } /pnpm" configured for the root directory`
193
+ ) ;
180
194
expect ( infoSpy ) . toHaveBeenCalledWith (
181
195
`Cache hit occurred on the primary key ${ pnpmFileHash } , not saving cache.`
182
196
) ;
@@ -204,9 +218,14 @@ describe('run', () => {
204
218
expect ( getStateSpy ) . toHaveBeenCalledTimes ( 2 ) ;
205
219
expect ( getCommandOutputSpy ) . toHaveBeenCalledTimes ( 2 ) ;
206
220
expect ( debugSpy ) . toHaveBeenCalledWith (
207
- 'yarn path is /some/random/path/yarn1 (derived from cache-dependency-path: "")'
221
+ 'Project directory "." derived from cache-dependency-path: ""'
222
+ ) ;
223
+ expect ( debugSpy ) . toHaveBeenCalledWith (
224
+ 'Consumed yarn version is 1.2.3 (working dir: ".")'
225
+ ) ;
226
+ expect ( debugSpy ) . toHaveBeenCalledWith (
227
+ 'yarn\'s cache folder "/some/random/path/yarn1" configured for the directory "."'
208
228
) ;
209
- expect ( debugSpy ) . toHaveBeenCalledWith ( 'Consumed yarn version is 1.2.3' ) ;
210
229
expect ( infoSpy ) . not . toHaveBeenCalledWith (
211
230
`Cache hit occurred on the primary key ${ yarnFileHash } , not saving cache.`
212
231
) ;
@@ -236,9 +255,14 @@ describe('run', () => {
236
255
expect ( getStateSpy ) . toHaveBeenCalledTimes ( 2 ) ;
237
256
expect ( getCommandOutputSpy ) . toHaveBeenCalledTimes ( 2 ) ;
238
257
expect ( debugSpy ) . toHaveBeenCalledWith (
239
- 'yarn path is /some/random/path/yarn2 (derived from cache-dependency-path: "")'
258
+ 'Project directory "." derived from cache-dependency-path: ""'
259
+ ) ;
260
+ expect ( debugSpy ) . toHaveBeenCalledWith (
261
+ 'Consumed yarn version is 2.2.3 (working dir: ".")'
262
+ ) ;
263
+ expect ( debugSpy ) . toHaveBeenCalledWith (
264
+ 'yarn\'s cache folder "/some/random/path/yarn2" configured for the directory "."'
240
265
) ;
241
- expect ( debugSpy ) . toHaveBeenCalledWith ( 'Consumed yarn version is 2.2.3' ) ;
242
266
expect ( infoSpy ) . not . toHaveBeenCalledWith (
243
267
`Cache hit occurred on the primary key ${ yarnFileHash } , not saving cache.`
244
268
) ;
@@ -265,7 +289,9 @@ describe('run', () => {
265
289
expect ( getInputSpy ) . toHaveBeenCalled ( ) ;
266
290
expect ( getStateSpy ) . toHaveBeenCalledTimes ( 2 ) ;
267
291
expect ( getCommandOutputSpy ) . toHaveBeenCalledTimes ( 1 ) ;
268
- expect ( debugSpy ) . toHaveBeenCalledWith ( `npm path is ${ commonPath } /npm` ) ;
292
+ expect ( debugSpy ) . toHaveBeenCalledWith (
293
+ `npm's cache folder "${ commonPath } /npm" configured for the root directory`
294
+ ) ;
269
295
expect ( infoSpy ) . not . toHaveBeenCalledWith (
270
296
`Cache hit occurred on the primary key ${ npmFileHash } , not saving cache.`
271
297
) ;
@@ -292,7 +318,9 @@ describe('run', () => {
292
318
expect ( getInputSpy ) . toHaveBeenCalled ( ) ;
293
319
expect ( getStateSpy ) . toHaveBeenCalledTimes ( 2 ) ;
294
320
expect ( getCommandOutputSpy ) . toHaveBeenCalledTimes ( 1 ) ;
295
- expect ( debugSpy ) . toHaveBeenCalledWith ( `pnpm path is ${ commonPath } /pnpm` ) ;
321
+ expect ( debugSpy ) . toHaveBeenCalledWith (
322
+ `pnpm's cache folder "${ commonPath } /pnpm" configured for the root directory`
323
+ ) ;
296
324
expect ( infoSpy ) . not . toHaveBeenCalledWith (
297
325
`Cache hit occurred on the primary key ${ pnpmFileHash } , not saving cache.`
298
326
) ;
@@ -322,7 +350,9 @@ describe('run', () => {
322
350
expect ( getInputSpy ) . toHaveBeenCalled ( ) ;
323
351
expect ( getStateSpy ) . toHaveBeenCalledTimes ( 2 ) ;
324
352
expect ( getCommandOutputSpy ) . toHaveBeenCalledTimes ( 1 ) ;
325
- expect ( debugSpy ) . toHaveBeenCalledWith ( `npm path is ${ commonPath } /npm` ) ;
353
+ expect ( debugSpy ) . toHaveBeenCalledWith (
354
+ `npm's cache folder "${ commonPath } /npm" configured for the root directory`
355
+ ) ;
326
356
expect ( infoSpy ) . not . toHaveBeenCalledWith (
327
357
`Cache hit occurred on the primary key ${ npmFileHash } , not saving cache.`
328
358
) ;
@@ -352,7 +382,9 @@ describe('run', () => {
352
382
expect ( getInputSpy ) . toHaveBeenCalled ( ) ;
353
383
expect ( getStateSpy ) . toHaveBeenCalledTimes ( 2 ) ;
354
384
expect ( getCommandOutputSpy ) . toHaveBeenCalledTimes ( 1 ) ;
355
- expect ( debugSpy ) . toHaveBeenCalledWith ( `npm path is ${ commonPath } /npm` ) ;
385
+ expect ( debugSpy ) . toHaveBeenCalledWith (
386
+ `npm's cache folder "${ commonPath } /npm" configured for the root directory`
387
+ ) ;
356
388
expect ( infoSpy ) . not . toHaveBeenCalledWith (
357
389
`Cache hit occurred on the primary key ${ npmFileHash } , not saving cache.`
358
390
) ;
0 commit comments