angular/integration/standalone-bootstrap/e2e/src/app.e2e-spec.ts
Andrew Kushnir 3165fa3f4e perf(platform-browser): avoid including Testability by default in bootstrapApplication (#45885)
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
2022-05-10 13:34:28 -07:00

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', () => {});
});