Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getCacheKey: function getCacheKey(
fileData,
filename,
configString,
{ config, instrument, rootDir }
) {
return crypto
.createHash('md5')
.update(
babelJest.getCacheKey(fileData, filename, configString, {
config,
instrument,
rootDir
}),
'hex'
)
.digest('hex')
}
}
const getCacheKey = (src, filename, config, cacheOptions) =>
isPackageFile(filename)
? getPackageCacheKey(filename)
: babelJest.getCacheKey(src, filename, config, cacheOptions);