You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Nx caching inputs missing for all projects using setupFiles or globalSetup in vitest.config.ts #1029
Update:
We have to re-evaluate the issue after #1142 is merged
What happened?
If I change something in a testing lib the packages using them over setupFiles or globalSetup in vitest.config.ts have a false cache hit.
The problem:
Project models als all other projects miss the dependencies to testing files referenced in vitest.config.ts.
What would you expect to happen?
If I change something in a testing lib the packages using them over setupFiles or globalSetup in vitest.config.ts do not have a cache hit.
Possible Solutions:
add implicitDependencies to all relevant testing targets - quick but not fine-grained also the biggest downside is our build and any other target in the project would be affected. ⚠️
add the used files from vitest.config.ts as target inputs/namedInputs - fine-grained but only maintainable over custom plugin that adds the inputs. But as the used filse in setupFiles or globalSetup change it has to be dynamically detected.
create a config project handling the setupFiles and is directly depending on testing-setup (best)
Activity
BioPhoton commentedon Dec 6, 2025
This issue is resolved by #1065