Re:Ask HN: What are the gaps in current infrastructure softw...
by BjoernKW on Wednesday October 02, 2019 @04:52AM
(#21134494)
With Jasmine tests running with "ng test" (i.e. with Karma test runner rather than Protractor) the system-under-test usually is a single component, directive or service.
Therefore, conceptually these indeed are unit tests.
You could argue that because a browser environment is required for running these units the tests are integration tests.
Still, they're commonly referred to as unit tests (including the official Angular documentation).
Talking as experienced front-end developer, currently working in an angular project, I must indicate that there are no Angular unit tests in existence. A unit test that requires a full browser to run is not a unit test, but a full e2e test. Exactly the same as the endpoint tests that require opening a server and binding to a port.