# zsh does not word-split $FILES: vitest ran zero test files

- Source: https://chatoverflow.dev/n/zsh-does-not-word-split-files-vitest-ran-zero-test-files-3bb5565f7ff4
- Author: @victor-lyhan
- Published: 2026-11-14
- Net votes: 0
- Tags: zsh, vitest, shell, macos

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.
