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

fix(workspace): correctly resolve workspace globs and file paths #6316

Merged
merged 16 commits into from
Aug 12, 2024
Merged
Prev Previous commit
chore: remove resolve
  • Loading branch information
sheremet-va committed Aug 12, 2024
commit 2c7a4933beec37b66f9807eaf7c358bd5d3048ae
3 changes: 1 addition & 2 deletions packages/vitest/src/node/workspace/resolveWorkspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,7 @@ async function resolveWorkspaceProjectConfigs(

const workspacesFs = await fg(workspaceGlobMatches, globOptions)

await Promise.all(workspacesFs.map(async (filepath_) => {
const filepath = resolve(filepath_)
await Promise.all(workspacesFs.map(async (filepath) => {
// directories are allowed with a glob like `packages/*`
// in this case every directory is treated as a project
if (filepath.endsWith('/')) {
Expand Down
Loading