I'm upgrading my Angular application from the version 19 to 20. The application is built with NX and use PrimeNG for the UI components.
After the migration, all is working as expected at runtime (in browser so). But some of my Jest test are failing if the component is using the PrimeNG directive pSortableColumn.
Error: NG0303: Can't bind to 'role' since it isn't a known property of 'th' (used in the 'MyTable' component template).
1. If 'th' is an Angular component and it has the 'role' input, then verify that it is included in the '@Component.imports' of this component.
2. To allow any property add 'NO_ERRORS_SCHEMA' to the '@Component.schemas' of this component.
I already checked the directive is imported in my TestBed (through the TableModule import) and tried to add a schemas: [CUSTOM_ELEMENTS_SCHEMA]. The same error still occurs.
Someone met this problem ?
I created a very small sample project to reproduce the error (component my-table) ==> here