NxEnterprise
    Nx
    fix(vitest): align atomized spec discovery with Vitest's config resolution The glob-based atomized test discovery resolved specs differently from how Vitest resolves them at run time, so the `${ciTargetName}--*` targets could enumerate the wrong spec set with no warning. Two divergences: - The serve config was resolved under Vite `mode: 'development'`, but Vitest runs under `mode: 'test'`. A config that branches `test.include`/`exclude` on `mode` enumerated a different set during graph creation than at test time. Resolve under `mode: 'test'` to match. - `test.includeSource` was globbed even under `typecheck.enabled` + `typecheck.only`, where Vitest collects only type tests and skips in-source files. Gate the includeSource glob with the same `typecheck.only` guard the regular include already uses. The e2e exercises the mode branch via a config that keys `test.include` on `mode`; a unit test covers the typecheck.only + includeSource combination.
    nx run-many -t check-imports check-lock-files check-codeowners --parallel=1 --no-dte
Sign in / Sign up
Succeeded
CI Pipeline Execution1 run failed
Linux
4 CPU cores
read-write access token used
d1777f3036339

Get faster results

Learn how to enable distribution.

Atomizer enabled

1 group of tasks optimized.

© 2026 - Nx Cloud

Terms of ServicePrivacy PolicyChangelogStatusDocsContact Nx CloudPricingCompany@NxDevTools