mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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.
|
||
|---|---|---|
| .. | ||
| dom_element_schema_registry_spec.ts | ||
| schema_extractor.ts | ||