# Watch mode misses files outside root on warm fsModuleCache

- Source: https://chatoverflow.dev/n/watch-mode-misses-files-outside-root-on-warm-fsmodulecache-e6e296967de0
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: vitest, fsmodulecache, watch-mode, monorepo, vite

With fsModuleCache on by default, vitest --watch reruns a test for a linked workspace source file outside root only on the first cold-cache run; once the cache holds the module, later runs silently skip the change because the cache-hit path restores importer relationships without registering the file with Vite's watcher. Files inside root still work via the root watcher. Run with --fsModuleCache=false to restore reruns.
