@applitools/execution-grid-tunnel
Version:
Allows user to run tests with exection-grid and navigate to private hosts and ips
19 lines (16 loc) • 513 B
JavaScript
const os = require('os')
const path = require('path')
module.exports = {getCacheDirectoryPath}
function getCacheDirectoryPath(platform){
const homeDirectory = os.homedir()
switch(platform){
case 'win32':
return path.join(homeDirectory, 'AppData', 'Local')
case 'darwin':
return path.join(homeDirectory, 'Library', 'Caches')
case 'linux':
return path.join(homeDirectory, '.cache')
default:
throw new Error("OS platform isn't supported")
}
}