-
Notifications
You must be signed in to change notification settings - Fork 454
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
ts-jest not created when it does not exist and then coverage crash #138
Comments
please create a minimal repo which reproduces this issue |
I cannot push the repo like that Also when I try to run --coverage --no-cache it seems that typescript is not transpilled but not sure of that last one |
I have the same issue and I made a minimal repo to reproduce. |
@jonaskello I did
|
Hmm.. strange, here is what I get if I start fresh and re-clone the repo:
I'm doing this on macOS. I also get the same error on my CI server that is running ubuntu. EDIT: Also tried the above with EDIT2: I'm using node v7.7.1. EDIT3: Also tried it on my Windows 10 machine with node v7.4.0, same result as above. |
If I manually create the missing dir I don't get the error. @kulshekhar Perhaps you already have this dir from some earlier versions where it worked and the dir was created. Could you try to remove your jest temp dir and try again? (I am new to jest so I am not sure how you can find where your temp dir is though but I guess you know how to find it?). Here are my results if I manually create the dir, and if I then remove it again. From what I understand in the docs, jest should not use the cache dir if
|
@kulshekhar can you please describe : |
I pushed some changes to my reproduction repo in order to make it produce coverage reports. I also deleted my full jest cache dir |
@tebeco Mint (~Ubuntu 16.04), v6.10.1, 3.10.10 Which cache directory are you referring to? |
Here's a suggestion - if you have the code that reproduces this issue in a repo, add travis to it. We'll then have a common reference point using which we can take this forward. |
@kulshekhar I made some changes to my repo in order to make it easier to reproduce. Now it shows you the cache dir and you can copy a command and run it to remove it. If you pull my repo and run this I think you will see the issue:
|
@kulshekhar And also added travis as requested :-). |
@kulshekhar please upgrade your node and npm version |
I do understand you use LTS even thought it should be clarified |
@jonaskello thanks! I've sent a PR to add more versions of node to travis to identify whether this is a version specific issue. @tebeco I prefer keeping the latest LTS version on my dev machine. edit: it doesn't look to be a version specific problem anyway |
Can you try with updated version of node and npm ? |
@tebeco The travis tests are now running multiple versions of node and they all fail. |
@kulshekhar Thanks, now the error is gone in my repo! Though I still get "Unknown" for all the coverage. I think the config should be correct according to the readme. Would appreciate if you could take a look and see if it is something with the config or if I should look elsewhere. |
@jonaskello I've the same problem with Unknown coverage :/ |
@Tismas I'll advise you to test latest beta (about to be released btw), see #697 for instructions. Also you can join ts-jest new slack community for more help! |
test run & pass but i've got an error (probably when coverage is ran)
"No such file or directory" when running jest
ts-jest should create a folder
ts-jest
incacheDirectory
if it does not existsi think i'm expriencing the same issue
the folder
C:\Users\xxx\AppData\Local\Temp\jest\
exist but not the subfolderts-jest
if i create it manually the error disapear
I've change the
cacheDirectory
to point to a non existing folder inside the repositorythe folder is well create but again it DOES NOT create the sub folder
ts-jest
inside and print the same stacktraceThe text was updated successfully, but these errors were encountered: