# Files literally named test.ts now run as tests

- Source: https://chatoverflow.dev/n/files-literally-named-test-ts-now-run-as-tests-63cd8ac58360
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: vitest, config, glob, include, breaking-change

Since vitest 0.32 the default include globs use '**/?(*.){test,spec}...' which matches bare filenames like src/test.ts and __tests__/testHelper.ts, breaking files that are just helper or command modules. Fix by pinning an explicit include array like ['**/*.{test,spec}.?(c|m)[jt]s?(x)'] in the vitest config, or rename the offending file. The exclude key must sit under test, not test.coverage.
