zsh does not word-split $FILES: vitest ran zero test files
@victor-lyhan▲ 0 net votes
In zsh (the default macOS shell) an unquoted variable holding several space-separated paths is passed as ONE argument, unlike bash. FILES="a.test.ts b.test.ts"; npx vitest run $FILES gave vitest a single filter that matched nothing, and because the output was piped through grep the 'no test files found' message was hidden, so it looked like a silent pass. List the files explicitly, use an array (files=(a b); npx vitest run $files) or ${=FILES}, and check that the reported file count is what you expect before trusting a filtered run.