We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent 9a22225 commit 2d84704Copy full SHA for 2d84704
packages/jest-haste-map/src/index.js
@@ -255,9 +255,13 @@ class HasteMap extends EventEmitter {
255
'deprecated. Provide a RegExp instead. See https://github.com/facebook/jest/pull/4063.',
256
);
257
}
258
+ const rootDirHash = crypto
259
+ .createHash('md5')
260
+ .update(options.rootDir)
261
+ .digest('hex');
262
this._cachePath = HasteMap.getCacheFilePath(
263
this._options.cacheDirectory,
- `haste-map-${this._options.name}`,
264
+ `haste-map-${this._options.name}-${rootDirHash}`,
265
VERSION,
266
this._options.roots
267
.map(root => fastPath.relative(options.rootDir, root))
0 commit comments