jest-config
Advanced tools
Comparing version 19.0.2 to 19.0.3
@@ -22,2 +22,16 @@ /** | ||
const cacheDirectory = (() => { | ||
if (process.getuid == null) { | ||
return path.join(os.tmpdir(), 'jest'); | ||
} | ||
// On some platforms tmpdir() is `/tmp`, causing conflicts between different | ||
// users and permission issues. Adding an additional subdivision by UID can | ||
// help. | ||
return path.join( | ||
os.tmpdir(), | ||
'jest', | ||
process.getuid && process.getuid().toString(36) || ''); | ||
})(); | ||
module.exports = { | ||
@@ -27,3 +41,3 @@ automock: false, | ||
browser: false, | ||
cacheDirectory: path.join(os.tmpdir(), 'jest'), | ||
cacheDirectory, | ||
clearMocks: false, | ||
@@ -30,0 +44,0 @@ coveragePathIgnorePatterns: [NODE_MODULES_REGEXP], |
{ | ||
"name": "jest-config", | ||
"version": "19.0.2", | ||
"version": "19.0.3", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
48818
1233