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.
|
||
|---|---|---|
| .. | ||
| src | ||
| test | ||
| testing | ||
| core_private.ts | ||
| core_private_testing.ts | ||
| index.ts | ||
| package.json | ||
| private_export.ts | ||
| rollup.config.js | ||
| testing.ts | ||
| tsconfig-es5.json | ||
| tsconfig-es2015.json | ||