I have an Angular app in which i have many components. But for now I just want to run the tests for login.component.ts
so for that I did in my test.ts
file like this
const context = require.context('./', true, /login\.component\.spec\.ts$/);
But when I run ng test
it runs all components' test files and gives an error on one of the directives I have like this: