mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
The Testability-related logic was refactored in https://github.com/angular/angular/pull/45657 to become tree-shaking-friendly: it was decoupled from the core providers of the `BrowserModule`. This commit updates the newly-introduced `bootstrapApplication` function to exclude Testability-providers by default (note: the Testability is still included in the NgModule-based bootstrap). In order to add the Testability to the app bootstrapped via `bootstrapApplication`, the `provideProtractorTestingSupport` function is introduced. PR Close #45885
11 lines
461 B
TypeScript
11 lines
461 B
TypeScript
/**
|
|
* Note: this file contains no e2e tests, since they rely on Protractor,
|
|
* which requires Testability. Testability is not included by default when
|
|
* the `bootstrapApplication` function is used (which is the case in this app).
|
|
* We use this app primarily to measure payload size, so we want to keep
|
|
* Testability excluded.
|
|
*/
|
|
describe('Standalone Bootstrap app', () => {
|
|
// Jasmine will throw if there are no tests.
|
|
it('should pass', () => {});
|
|
});
|