Description
When running dbt build --select state:modified with deferral, changes to a unit test are not detected as modified. The associated SQL model runs (if its columns changed), but the unit test node itself is not selected.
Steps to Reproduce
- Do a full build and save the manifest as the deferred state
- Change a unit test definition and a SQL model column
- Run
dbt build --select state:modified with deferral to the saved manifest
- Observe: the SQL model runs, but the unit test does not run
Expected Behavior
The unit test node should be selected as state:modified and run.
Actual Behavior
The unit test node is not selected — it is treated as unmodified even though its definition changed.