Skip to content
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

Plugin won't run on Windows when project is in a path with a space in it. #426

Closed
paulfelton opened this issue Feb 22, 2019 · 1 comment · Fixed by jest-community/jest-editor-support#21

Comments

@paulfelton
Copy link

Environment

  1. node -v: [v8.11.3]

  2. npm -v: [v6.8.0]

  3. npm ls jest or npm ls react-scripts (if you haven’t ejected): [n/a]

  4. Operating system: [Windows 8.1]

Prerequisite

  • are you able to run jest test from command line? [yes]
  • how do you run your tests from command line? (for example: npm run test or node_modules/.bin/jest) [npm run test]

Steps to Reproduce

  1. Place your project in a folder containing a space, eg: e:\My Websites\myproject.
    Plugin attempts to run multiple times before giving up, saying it can't find 'e:\My'.

Expected Behavior

Plugin should be able to handle Windows paths

Actual Behavior

Complains it can't find 'e:\My'


The fastest (and the most fun) way to resolve the issue is to submit a pull-request yourself. If you are interested, feel free to check out the contribution guide, we look forward to seeing your PR...

@longsoft-dev
Copy link

Same issue as #360, #342
Work-around was to add in vs code settings "jest.pathToJest": "npm run test --"
I don't believe #342 should be closed with just a work-around?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants