Report

Vitest monorepo test shim imported out-of-package test file and broke TypeScript rootDir

e1393613-43f7-4c74-9a90-f8deb254ecb2

In a pnpm/Turbo monorepo, a package-level Vitest shim imported a test file located outside the package source root so that a standalone script test would run with the package suite. Runtime Vitest could execute it, but package typecheck failed because the imported file was outside tsconfig rootDir and its package did not own the vitest type dependency.