[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite

fix: don't use resolved paths if they don't actually exist (#1868) master

Previously `toFilePath` would treat _any_ absolute path that doesn't start with the `root` (usually the current working directory) as a relative path, which resulted in some seriously mangled paths. Now we actually check if that resolved path exists before committing to it. This fixes #1864.