jest-community / vscode-jest

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

Virtual-folder #1035

Closed connectdotz closed 1 year ago

connectdotz commented 1 year ago

We have come a full circle on this issue - supporting multiple jest configs for a given workspace. This is common for monorepo projects and projects with multiple test environments, such as unit and integration tests. We implemented monorepo support with vscode multi-root workspaces a few years ago. However, this fell short of addressing multi-test-environment that share the same code base (folder).

This PR addresses this gap by introducing the concept of virtual folders. A virtual folder defines a jest runtime environment, customizable with all resource level settings, such as jestCommanLine, rootPath. Multiple virtual folders can reside in any given vscode workspace folder via jest.virtualFolders. See details documented in the README.md file.

The code change outline:


resolve #870 resolve #428

coveralls commented 1 year ago

Pull Request Test Coverage Report for Build 5307024458


Totals Coverage Status
Change from base Build 5262287914: 0.04%
Covered Lines: 3543
Relevant Lines: 3563

💛 - Coveralls