How to use a custom ElementSchemaRegistry in tests?

9 views
Skip to first unread message

CSchulz

unread,
Mar 12, 2020, 12:19:16 PM3/12/20
to Angular and AngularJS discussion
I have upgraded to Angular 9 and enabled Ivy. I am wondering why my tests fails with complaining about unknown elements:

core.js:14377 'content-block' is not a known element:
1. If 'content-block' is an Angular component, then verify that it is part of this module.
2. If 'content-block' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.

Before Angular 9 we used a custom ElementSchemaRegistry to check the tag names, but it seems this feature is missing with Ivy:

Is any equivalent solution available or planned?
Reply all
Reply to author
Forward
0 new messages