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

Runs as VSCode project root, NOT working directory #45

Closed
samdoeswork opened this issue Nov 17, 2019 · 2 comments
Closed

Runs as VSCode project root, NOT working directory #45

samdoeswork opened this issue Nov 17, 2019 · 2 comments
Labels

Comments

@samdoeswork
Copy link

Hi,
I have a setup with directories e.g.:
/tests
/func/func1

From func/func1 if I run "jest" in terminal the test runs fine, but when I run via. jest-runner it uses the project root scope, which means relative paths are broken (e.g. file loads).

I've tried the following:

  • adding jest-config.json to the local folder
  • adding jest config section to package.json in the local folder
  • using VSCode settings variables in the jestrunner config path setting, e.g.: /${relativeFileDirname}/jest-config.json (they appear to be all blank at runtime)

Any advice on how to run as the open directory?

@firsttris
Copy link
Owner

hey @samdoeswork does this mean you are using workspaces within vscode?

there is already a issue

#43

@firsttris firsttris added the bug label Dec 1, 2019
@firsttris
Copy link
Owner

fixed it, will be included in version 0.4.3 release

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

No branches or pull requests

2 participants