Directives

testing-attribute-directives

Testing single use cases of directive is unlikely to explore the full range of its capabilities.

Since directives tend to manipulate the DOM, class-only tests might not be helpful either.

A better solution is to create an artificial test component that demonstrates all ways to apply the directive. (Create it inside the .spec file)

Last updated