Skip to content

jest debugging : fixed program path so it also works with jest-cli#106

Merged
auchenberg merged 1 commit intomicrosoft:masterfrom
fallanic:running-jest
Jun 18, 2018
Merged

jest debugging : fixed program path so it also works with jest-cli#106
auchenberg merged 1 commit intomicrosoft:masterfrom
fallanic:running-jest

Conversation

@fallanic
Copy link
Copy Markdown
Contributor

As of today (06/18), if a VS code user uses react-boilerplate, he will install jest-cli as a dev dependency and there won't be any node_modules/jest folder, and these two debug configurations won't work.

So replaced the program path, so it uses node_modules/.bin/jest which will work when having either jest or jest-cli as a dev dependency.

It took me a little while to understand why these configs didn't work on my end even if they looked good, I hope this can save other VS Code users some time 🙂

If a VS code user uses react-boilerplate, he will install jest-cli as a dependency and there won't be any jest folder. So replaced the `program` path so it uses `node_modules/.bin/jest`  which will work in both cases
@auchenberg
Copy link
Copy Markdown
Contributor

LGTM! Thanks @fallanic

@auchenberg auchenberg merged commit 5611cd7 into microsoft:master Jun 18, 2018
@auchenberg auchenberg added this to the July 2018 milestone Aug 8, 2018
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 this pull request may close these issues.

3 participants