Angular tests are always in the same place as the code. When you create a component, service, pipe, directive with
ng generate it will always also generate a
Every file with the extension
.spec.ts is a test file that is caught by the testing tool. Each thing is tested in a different way. For a really long documentation on tests check the official documentation here.