fix: normalize path separator for rootDir replacement
Summary
Ref https://github.com/webpack/webpack/pull/8740.
/cc @sokra
Test plan
Unit test added
Broke tests for directories with parens... https://github.com/facebook/jest/blob/bc0f21d8145564364db5c12699224eb5c25c365e/packages/jest-cli/src/tests/SearchSource.test.js#L238-L256
What's the status of this PR?
Need to get back to it, but I haven't got access to a windows computer ATM, so I won't be able to any time soon
Ideally micromatch would have some utils for this
This PR is stale because it has been open 1 year with no activity. Remove stale label or comment or this will be closed in 30 days.
This PR was closed because it has been stalled for 30 days with no activity. Please open a new PR if the issue is still relevant, linking to this one.
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.