Provide the ability to test directives that contain input signals without wrapper components #54164
Labels
area: testing
Issues related to Angular testing features, such as TestBed
Milestone
Which @angular/* package(s) are relevant/related to the feature request?
core
Description
Given the following simple directive with a signal input:
There is no way for me to write a test because I can not use create a "DirectiveFixture"
Proposed solution
Provide a similar approach as
TestBed.compileComponents
but for directives.Alternatives considered
Stick with requiring wrapper components to test, but add documentation when input signals become available as part of the public API.
The text was updated successfully, but these errors were encountered: