-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regenerator Runtime not sourced from RootDir #7391
Comments
Hey @OllieJennings, thanks for the detailed report! Yeah I think we should fix this - but as you said, it's hard to reproduce. Any chance I could talk you into putting in a PR to fix? |
@rickhanlonii Just checked with work, and they have given me the all clear to make a PR for this, so will get on it. |
Great to hear, let me know if you have any trouble setting up the env 👍 |
Just bumping this @OllieJennings in case you have some spare time 👌 |
We removed the auto-injection of regenerator runtime in jest 24 (#7595), so I don't think this is an issue anymore |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
🐛 Bug Report
The
regenerator-runtime
setupFile does not source from the same location as<rootDir>
For example my config looks like:
But when l run Jest with the debug option, l get the following setupFiles output:
C:\\Developer
is a symlink to our network H driveNow this issue doesn't cause tests to fail, but does cause code coverage to include everything twice, since it sources from
C:\Developer
and then fromH:\
, so every file appears twice, and those sourced fromH:\
all have a 0 test coverage score.To Reproduce
This is very difficult unless you have a network drive with a symlink for
C:\Developer
to point to the root of your network drive.jest.config.js file is provided below:
And when running in
--debug
mode the value of myrootDir
is:"rootDir": "H:\\ion\\ion-ux-components"
Expected behavior
I expect all setupFiles to be sourced from the exact same location.
Link to repl or repo (highly encouraged)
Not really possible since network drive issue
Run
npx envinfo --preset jest
Paste the results here:
The text was updated successfully, but these errors were encountered: