You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe I encountered a regression after bumping the package @testing-library/angular from v17.1.0 to v17.2.1 while trying to use the new inputs property.
The issue arises with components that have inputs using a transform function that changes the type, such as:
title = input.required<TitleObject, string>({
transform: toTitleObject,
});
Hello 👋🏻,
I believe I encountered a regression after bumping the package
@testing-library/angular
fromv17.1.0
tov17.2.1
while trying to use the newinputs
property.The issue arises with components that have inputs using a transform function that changes the type, such as:
Below is the test I wrote :
In this case, TypeScript raises an error on the render function 🔴:
When modifying the input so that it has the same type as after the transformation, the TypeScript error is resolved, and the test passes 🟢:
Please find a reproduction sample below:
https://github.com/mlz11/atl-issue-pr-473
If this is confirmed as a bug, I would love to contribute to resolving it.
Thanks for your help!
The text was updated successfully, but these errors were encountered: