()
| 168 | debug(`using custom Cypress cache folder "${CYPRESS_CACHE_FOLDER}"`) |
| 169 | |
| 170 | const getCypressBinaryCache = () => { |
| 171 | const o = { |
| 172 | inputPath: CYPRESS_CACHE_FOLDER |
| 173 | } |
| 174 | const hash = lockHash() |
| 175 | const key = `cypress-${platformAndArch}-${hash}` |
| 176 | |
| 177 | // use only exact restore key to prevent cached folder growing in size |
| 178 | // https://glebbahmutov.com/blog/do-not-let-cypress-cache-snowball/ |
| 179 | o.restoreKeys = o.primaryKey = key |
| 180 | return o |
| 181 | } |
| 182 | |
| 183 | const restoreCachedNpm = () => { |
| 184 | debug('trying to restore cached npm modules') |
no test coverage detected