For clarification, image has been attached.
As you can see I am expected to import the modules of my application when importing it into a unit test file.
In order to fix this issue:
This question has been edited to be more clear and useful to others. @soundflix
Dependency declarations aren't transitive. When you import your production code, that doesn't also import the libraries your code depends on. So when your test code has any references to those libraries, they also must be imported. And from my experience, the libraries must also be linked into your test bundle.