{"action":"created","issue":{"url":"https://api.github.com/repos/jest-community/vscode-jest/issues/331","repository_url":"https://api.github.com/repos/jest-community/vscode-jest","labels_url":"https://api.github.com/repos/jest-community/vscode-jest/issues/331/labels{/name}","comments_url":"https://api.github.com/repos/jest-community/vscode-jest/issues/331/comments","events_url":"https://api.github.com/repos/jest-community/vscode-jest/issues/331/events","html_url":"https://github.com/jest-community/vscode-jest/issues/331","id":325070574,"number":331,"title":"No way to use jest installed within Windows Subsystem for Linux","user":{"login":"therazor","id":848778,"avatar_url":"https://avatars1.githubusercontent.com/u/848778?v=4","gravatar_id":"","url":"https://api.github.com/users/therazor","html_url":"https://github.com/therazor","followers_url":"https://api.github.com/users/therazor/followers","following_url":"https://api.github.com/users/therazor/following{/other_user}","gists_url":"https://api.github.com/users/therazor/gists{/gist_id}","starred_url":"https://api.github.com/users/therazor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/therazor/subscriptions","organizations_url":"https://api.github.com/users/therazor/orgs","repos_url":"https://api.github.com/users/therazor/repos","events_url":"https://api.github.com/users/therazor/events{/privacy}","received_events_url":"https://api.github.com/users/therazor/received_events","type":"User","site_admin":false},"labels":[{"id":457991750,"url":"https://api.github.com/repos/jest-community/vscode-jest/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":939209515,"url":"https://api.github.com/repos/jest-community/vscode-jest/labels/stage:%20needs%20investigating","name":"stage: needs investigating","color":"eff7ff","default":false},{"id":940535194,"url":"https://api.github.com/repos/jest-community/vscode-jest/labels/topic:%20Windows%20support","name":"topic: Windows support","color":"ffe875","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-21T21:47:49Z","updated_at":"2018-05-22T13:23:52Z","closed_at":null,"author_association":"NONE","body":"### Environment\r\n\r\n1. `node -v`: no version installed\r\n2. `npm -v`: no version installed\r\n3. `npm ls react-scripts` (if you haven’t ejected): N/A\r\n\r\n4. Operating system: Windows 10 + WSL\r\n\r\n### Steps to Reproduce\r\n\r\nUse Windows 10 + Windows subsystem for linux. Install node/npm/jest within the subsystem only, not in windows.\r\n\r\n### Expected Behavior\r\n\r\nThere should be a way to use the version of jest installed within WSL rather than duplicating the installation of all the tools required, once within linux and once in windows\r\n\r\n### Actual Behavior\r\n\r\n```\r\n'jest' is not recognized as an internal or external command, operable program or batch file.\r\n```\r\n(Quite rightly, as there's absolutely no node/jest/npm installed outside WSL)\r\n\r\n--- \r\n\r\nI've tried to look through docs and other open bugs but cannot find anything similar, apologies if I've missed it!\r\nNote that I'm not sure if there are any guidelines for extension authors around using WSL, but it's e.g. possible to [debug files using node installed within WSL](https://code.visualstudio.com/updates/v1_17#_node-debugging), so assuming it's doable for extensions as well."},"comment":{"url":"https://api.github.com/repos/jest-community/vscode-jest/issues/comments/390988234","html_url":"https://github.com/jest-community/vscode-jest/issues/331#issuecomment-390988234","issue_url":"https://api.github.com/repos/jest-community/vscode-jest/issues/331","id":390988234,"user":{"login":"stephtr","id":5764184,"avatar_url":"https://avatars1.githubusercontent.com/u/5764184?v=4","gravatar_id":"","url":"https://api.github.com/users/stephtr","html_url":"https://github.com/stephtr","followers_url":"https://api.github.com/users/stephtr/followers","following_url":"https://api.github.com/users/stephtr/following{/other_user}","gists_url":"https://api.github.com/users/stephtr/gists{/gist_id}","starred_url":"https://api.github.com/users/stephtr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephtr/subscriptions","organizations_url":"https://api.github.com/users/stephtr/orgs","repos_url":"https://api.github.com/users/stephtr/repos","events_url":"https://api.github.com/users/stephtr/events{/privacy}","received_events_url":"https://api.github.com/users/stephtr/received_events","type":"User","site_admin":false},"created_at":"2018-05-22T13:23:52Z","updated_at":"2018-05-22T13:23:52Z","author_association":"MEMBER","body":"That answers my question. You could set `\"jest.pathToJest\": \"node node_modules/jest/bin/jest.js\"`, which should work with your setup."}}
{"actor":{"display_login":"stephtr"}}