From 53bbacc67e94fa5e703d1d5db91cd03aeb4801dd Mon Sep 17 00:00:00 2001 From: Alec Larson Date: Fri, 8 Mar 2019 17:28:56 -0500 Subject: [PATCH] fix: forgot to make the target relative --- packages/jest-haste-map/src/crawlers/watchman.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/jest-haste-map/src/crawlers/watchman.ts b/packages/jest-haste-map/src/crawlers/watchman.ts index 02173180634b..309c10fc829e 100644 --- a/packages/jest-haste-map/src/crawlers/watchman.ts +++ b/packages/jest-haste-map/src/crawlers/watchman.ts @@ -217,7 +217,7 @@ export = async function watchmanCrawl( const mtime = testModified(metaData, link.mtime_ms); dependencyLinks.set( relativePath, - mtime !== 0 ? [target, mtime] : metaData!, + mtime !== 0 ? [fastPath.relative(rootDir, target), mtime] : metaData!, ); if (fs.statSync(target).isDirectory() && isValidRoot(target)) {