From bb185592737cf85d323556767cfabb5ce8d8bae6 Mon Sep 17 00:00:00 2001 From: Vladimir Sheremet Date: Wed, 25 Sep 2024 12:22:45 +0200 Subject: [PATCH] fix(workspace): ignore DS_Store by default --- packages/vitest/src/node/workspace/resolveWorkspace.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/vitest/src/node/workspace/resolveWorkspace.ts b/packages/vitest/src/node/workspace/resolveWorkspace.ts index c4ebc1019b9d..168966332b09 100644 --- a/packages/vitest/src/node/workspace/resolveWorkspace.ts +++ b/packages/vitest/src/node/workspace/resolveWorkspace.ts @@ -215,7 +215,13 @@ async function resolveWorkspaceProjectConfigs( onlyFiles: false, cwd: vitest.config.root, expandDirectories: false, - ignore: ['**/node_modules/**', '**/*.timestamp-*'], + ignore: [ + '**/node_modules/**', + // temporary vite config file + '**/*.timestamp-*', + // macOS directory metadata + '**/.DS_Store', + ], } const workspacesFs = await glob(workspaceGlobMatches, globOptions)