From d6126830ca6dcdab05c0bf919d499233fd77bb68 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 d53990c60210..31e955f972e8 100644 --- a/packages/jest-haste-map/src/crawlers/watchman.ts +++ b/packages/jest-haste-map/src/crawlers/watchman.ts @@ -224,7 +224,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)) {