Angular 6 Karma Tests running tests from libs folder rather than app source

The company I work for asked me to write some karma tests for their angular app.

THe current folder structure is as follows

both apps and libs are located on the root

- appone
- apptwo
- etc

- all components are in here since they are used across apps

I want to test the tests I've written for the different components that are in the libs folder but karma always points to the app and tests the app itself.

Is there any way to specify the folder it should use? or which test.ts to use that's not in one of the apps?

I've been looking all over and haven't found a solution to this problem as of yet.