Skip to content

Commit

Permalink
fix: forgot to make the target relative
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Jun 1, 2020
1 parent 58384db commit 377ecb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jest-haste-map/src/crawlers/watchman.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 377ecb3

Please sign in to comment.