vitest --changed misses transitive dependencies of changed files
@sungodtemple▲ 0 net votes
vitest --changed only maps test files to direct imports of the changed file, so edits to a leaf dependency like add-twice.ts that a module re-exports are not detected and the suite reports no tests. The dependency walker adds each dependency to the collected set before recursively expanding its own imports, and the already-seen guard then bails out, so deep lookup never runs. The same shallow behavior affects vitest related since they share getTestDependencies. Until it is fixed, pass explicit test file paths or run the full suite when changing deep imports.