-
Notifications
You must be signed in to change notification settings - Fork 290
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
Jest extension doesn't seem to be running, and so does its intellisense #269
Comments
Having issues too. Debugging stopped working - cannot find jest.js |
The IntelliSense is me using all those errors seem to be about vscode-for-flow and not jest? |
Happy to take a look. Could you both provide a simple repo to reproduce the issue, and all the steps required to set up the environment and open the project? |
I'm little new here : )
|
I am experiencing this same issue on a laptop running Windows 10 Education, with VS code and this extension installed. There are two other developers who are running Macs and the extension works properly. To eliminate any possible local configuration issues, we took the same project and brought it into an old Mac Mini. On the Mac Mini it works as expected. There is an issue with running this extension on a Windows 10 machine. |
@seanpoulter Have found what is causing my debugging issue. 8e88e30 helpers.ts has changed from my previous version and now does not add .cmd to the pathToJest. When resolvePathToJestBin is called in JestExt.ts a different switch path is taken. The jest file is read but is not of the expected format. ...
} The workspace against which the extension is running against has devDependency of "jest":^22.3.0 and the jest file in node_modules/.bin is as follows `#!/bin/sh case if [ -x "$basedir/node" ]; then Running Windows 10 Pro, Node 8.9.1 So for windows users having the same issue upon updating version add to your Workspace/User Settings - "jest.pathToJest": "node_modules/.bin/jest.cmd" Please advise further. Thanks |
Thanks for the details @tonyhallett. Either @stephtr or I will have a look as soon as we've got a chance. |
The debug issue is indeed a side effect of my commit. As @tonyhallett said it searches now within @ueeieiie Your repository is working in my VS Code: |
@stephtr I figured out what was the reason. The Cause of Problem:I think Jest was confused by my folders structure. My Project Folder:
I tried to run Jest's test inside Solution:I started to use vscode workspace and made |
Environment
node -v
: [8.9.4]npm -v
: [5.6.0]Steps to Reproduce
Achiving intellisense for jest commands
like in here:
Expected Behavior
getting the list of available methods from jest
and get indication that Jest extension works, by seeing the Jest icon on the status bar
Actual Behavior
Logs of Developers Tools Console
I've added
"jest.pathToJest": "node_modules/.bin/jest"
intosettings.json
When
./vscode/settings.json
is open I get this in the console:The text was updated successfully, but these errors were encountered: