-
-
Notifications
You must be signed in to change notification settings - Fork 101
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Describe the feature or problem you'd like to solve
It seems like the ng-mocks library does not automatically apply default values to signal inputs when rendering components for testing. This means that even if a signal input has a default value set in the component (e.g., input(defaultValue)), it appears to be null in the test environment unless manually set. This behavior might not accurately reflect how the component would work in a real application, especially if the default value is removed from the component.
Proposed solution
If this behavior is indeed due to how ng-mocks handles signal inputs, it would be beneficial to implement a feature that automatically applies default values to signal inputs when rendering components for testing:
- Tests would automatically fail if default values are removed from the component, ensuring that changes to default values are caught and it mimicks the component's behavior better.
endlacer, gcoadour, HansKrywalsky and EinfachHans
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request