-
-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Coverage seems to run twice each test #6265
Comments
Actually we have exactly the same issue with ts and tsx files.
Env versions: |
Same issue here. And the coverage directory has the files that are in my src twice, one nested in a sort of “temp” folder. |
We have a workaround for this issue. When we tried to execute tests directly via jest we got error message that pointed this drive letter issue. This is message somehow swallowed by react-scripts test script. To the point: temporary solution is to use: driveup npm package
|
I am also on Windows, btw. |
Can we expect any update on this one? |
It may be worth trying the 3.0 alpha which includes Jest 24. There's a chance it may fix this issue. |
Upgrading to the alpha did not work in my case @ianschmitz |
Is this a bug report?
Yes
Did you try recovering your dependencies?
Yes
Which terms did you search for in User Guide?
test jest coverage
Environment
Environment Info:
System:
OS: Windows 7
CPU: x64 Intel(R) Core(TM) i7-5600U CPU @ 2.60GHz
Binaries:
Yarn: 1.7.0 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.4.1 - C:\Program Files\nodejs\npm.CMD
Browsers:
Internet Explorer: 11.0.9600.19236
npmPackages:
react: 16.7.0 => 16.7.0
react-dom: 16.7.0 => 16.7.0
react-scripts: 2.1.3 => 2.1.3
npmGlobalPackages:
create-react-app: Not Found
Steps to Reproduce
npx create-react-app my-app-test
cd my-app-test\
npm run test -- --coverage
Expected Behavior
Actual Behavior
Actually, I had this problem last year, I could resolve it because I had Jest in Dev Dependencies, and it seems to be problematic.
But, now I have the same problem, but whatever the configuration. For example, with just a fresh install, I got this problem, locally on my machine, but also in VSTS during the build step... And I'm not the only one in my company.
The text was updated successfully, but these errors were encountered: