diff --git a/__tests__/cache-restore.test.ts b/__tests__/cache-restore.test.ts index 81499903..b4b48ad2 100644 --- a/__tests__/cache-restore.test.ts +++ b/__tests__/cache-restore.test.ts @@ -163,6 +163,12 @@ virtualenvs.path = "{cache-dir}/virtualenvs" # /Users/patrick/Library/Caches/py fileHash, cachePaths ) => { + restoreCacheSpy.mockImplementation( + (cachePaths: string[], primaryKey: string, restoreKey?: string) => { + return primaryKey.includes(fileHash) ? primaryKey : ''; + } + ); + const cacheDistributor = getCacheDistributor( packageManager, pythonVersion,