-
Notifications
You must be signed in to change notification settings - Fork 45
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
jasmine is not defined in 1.0.205 #2430
Comments
It might be an issue with my node version. I'm in the processor of installing the latest version (instead of LTS) now |
Indeed, this was the issue. Is there a way to set the desired jest runner version wallaby-vscode is using? being forced to use a non-LTS version seems to be a big requirement. |
Could you please provide details of which node version you were using? We have tried our project on LTS and non-LTS and everything is working for us. The versions of node that we tried were:
|
I was using 10.14.1 |
Can you please try if node v10.16.3 if working for you? |
I am unable to try again as the newer version has overriden the previous one. Thanks for your help. |
I am having the same issue with a newer version of node installed.
|
@eric-dixon - I can see from your diagnostic report that you are using Jest v26. Is there any reason that you are not using Wallaby's automatic configuration feature? This should work for you and should also fix your problem. To use automatic configuration:
After specifying to use automatic configuration, you may keep using the |
I tried using automatic configuration, and I get the following error |
Ah, I see what the issue was for me. I guess it didn't like that I was in a directory above the root of my project(where the wallaby.js config file was). If I open VScode in the root directory of my project, it appears to work. |
Wallaby uses the jest cli which is a dependency of your project and installs in node_modules. If you're in the parent of your project's folder then it's not going to find it. |
Getting a variation of the error
jasmine is not defined
in a few projects, including one of yours.Steps to reproduce:
Wallaby diagnostics report
in another project of mine I am getting
Thanks.
The text was updated successfully, but these errors were encountered: