Skip to content

Commit 0ad5d60

Browse files
authored
test(cdk/testing): Allow TestComponentsModule to be bootable as a module for a standalone app (#25561)
This is required by downstream tests that use the cross-environment tests but do not start up the entire e2e test app in this repo. This change will be copybara'ed down to google3
1 parent 46536e9 commit 0ad5d60

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/cdk/testing/tests/test-components-module.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@
99
import {CommonModule} from '@angular/common';
1010
import {NgModule} from '@angular/core';
1111
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
12+
import {BrowserModule} from '@angular/platform-browser';
1213
import {TestMainComponent} from './test-main-component';
1314
import {TestShadowBoundary, TestSubShadowBoundary} from './test-shadow-boundary';
1415
import {TestSubComponent} from './test-sub-component';
1516

1617
@NgModule({
17-
imports: [CommonModule, FormsModule, ReactiveFormsModule],
18+
imports: [BrowserModule, CommonModule, FormsModule, ReactiveFormsModule],
1819
declarations: [TestMainComponent, TestSubComponent, TestShadowBoundary, TestSubShadowBoundary],
1920
exports: [TestMainComponent, TestSubComponent, TestShadowBoundary, TestSubShadowBoundary],
21+
bootstrap: [TestMainComponent],
2022
})
2123
export class TestComponentsModule {}

0 commit comments

Comments
 (0)