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

Symlink Path Resolution #93

Closed
cenk1cenk2 opened this issue Jul 22, 2020 · 2 comments
Closed

Symlink Path Resolution #93

cenk1cenk2 opened this issue Jul 22, 2020 · 2 comments
Labels

Comments

@cenk1cenk2
Copy link

I have a weird problem, done some searches in the issues but could not find something closer to this.

My working directory is a symlink to another place. When it tries to resolve the pattern it uses the symlinked path while it searches for it inside the original directory.

jestrunner is utilized through SSH-Remote plugin to another server in vscode-insiders 1.48.0 version. Everything else seems okay for it to run.

If there is already an issue open for this I am terribly sorry.

image

@firsttris firsttris added the bug label Aug 11, 2020
@fermmm
Copy link

fermmm commented Sep 17, 2020

When you opened your project in vscode, if you navigated to the project folder using a simlink/link then your project path will be the "link" path and not the "real" path and the extension doesn't work because it executes Jest with the path you navigated when opening the project and Jest does not support link paths. Then you see an error like: No tests found, exiting with code 1. They have an issue opened with this problem: jestjs/jest#7549

Workaround:

Open your project folder again in vscode browsing the real path to the folder without simlinks.

How could this extension fix this issue:

Running this command converts a link path into a real path:
readlink -f <link path>
This could be used before calling jest and fix the issue.

@cenk1cenk2
Copy link
Author

Thank you for the workaround. I will close this issue since it is more related to jest then this plugin.

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

3 participants