jest-community / vscode-jest

The optimal flow for Jest based testing in VS Code
MIT License
2.84k stars 295 forks source link

[FEATURE]: Allows to update the configuration per projects #1159

Closed thuandohoang closed 3 months ago

thuandohoang commented 4 months ago

Is your feature request related to a problem? Please describe.

I'm working on multiple projects (web FE with ReactJS and mobile with ReactNative). Each project has a different root file. It's quite annoying when updating the rootPath every time I switch to work on each project.

Describe the solution you'd like I would be nice if the plugin allows me to configure the rootPath for each project.

Describe alternatives you've considered N/A

Additional context N/A

connectdotz commented 4 months ago

This extension's configuration is stored in VSCode's settings.json (single-root workspace) or .code-workspace (multi-root workspace) file. You should be able to configure the extension per project today by setting the jest.rootPath in the respective configuration file of each project.

If you can provide more details on how your projects are set up in VSCode, such as whether you're using single or multi-root workspaces and any specific configurations, we can offer more tailored assistance.

Looking forward to helping you further.

thuandohoang commented 3 months ago

Thanks @connectdotz, I found out we can have project configuration using .vscode/setting.json file.