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

[FEATURE] make rootPath from virtualFolders available inside launch.json #1212

Open
yawhide opened this issue Feb 6, 2025 · 0 comments
Open

Comments

@yawhide
Copy link

yawhide commented Feb 6, 2025

Is your feature request related to a problem? Please describe.
I am using virtualFolders in my settings.json and running tests works great! thanks for that feature!

however, debugging tests is awkward. I have to create a launch.json for each item in my virtualFolders array and hardcode a config path to match the rootPath in each virtualFolder defined.

Describe the solution you'd like
Could we make rootPath available to use inside launch.json? This way, i could set "cwd": "${jest.[name].rootPath}" or something similar? this would save me from having to hardcode the full path to the virtualFolder's jest file.

If we could do something like ${jest.[name].rootPath}, then could we only have to have 1 launch.json and it would support all virtualFolders?

Describe alternatives you've considered
n/a

Additional context
n/a

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

No branches or pull requests

1 participant