11/29/2022, 5:33 PM
So I think what’s happening is dependencies are attached to the “:tests” target. If you run your test like, it should work.
./pants test directory-to-tests:tests
The file’s dependencies are only being shown for the imports you have.