Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function getLocalInstallation () {
const local = resolveCwd('testcafe/lib/cli');
if (local && local !== __filename) {
log.write('Using locally installed version of TestCafe.');
return local;
}
return '';
}
async function requireFFMPEGModuleFromCwd () {
try {
const ffmpegModulePath = resolveCwd(FFMPEG_MODULE_NAME);
return require(ffmpegModulePath).path;
}
catch (e) {
return '';
}
}