mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
c631cfc2fd
Often it is useful to test a component without rendering certain directives/components
in its template because these directives require some complicated setup.
You can do that by using NO_ERRORS_SCHEMA.
TestBed.configureTestingModule({
schemas: [NO_ERRORS_SCHEMA]
});
This would disable all schema checks in your tests.