I am trying to test a part of our application. I know I can limit the tests by using fit, fdescribe, and changing the require.context in the test.ts file. However, I would like a way to test a specific folder, and all files under it, plus a couple of services outside of this folder.
src
app
folder1
folder2
folder3
services
service1.service.ts
service2.service.ts
As an example, I would like test test folder2, its children, and service2.service.ts.
Do you have any suggestions for doing such? By doing this, we will be able to automate our unit testing and be able to test grouped together pieces of functionality that are in different folders.
Note: I am using jasmine and karma for unit testing.