The question is published on by Tutorial Guruji team.
I’m trying to stick to the pure angular recommendations for unit testing:
But it really doesn’t tell me where they should live. My guess would be inside an angular service, probably segregated by page or in the same file as the base controller, sort of a base testing factory or service.
If you use the CLI to create your app and new objects, it will automatically create all of the tests as separate files with the .spec.ts extension.
So if the CLI does it that way, that is probably the recommended way.