Skip to content

Commit

Permalink
Fix Watchman on windows (#4018)
Browse files Browse the repository at this point in the history
Watchman returns `/` separated paths, but `jest-haste-map` uses `path.sep` which on windows equals `\`.
  • Loading branch information
patroza authored and cpojer committed Jul 13, 2017
1 parent dd6c5c4 commit e89355a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jest-haste-map/src/crawlers/watchman.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ module.exports = function watchmanCrawl(
}

pairs.forEach(pair => {
const root = pair.root;
const root = normalizePathSep(pair.root);
const response = pair.response;
if ('warning' in response) {
console.warn('watchman warning: ', response.warning);
Expand Down

0 comments on commit e89355a

Please sign in to comment.