Skip to content

Commit a1cec20

Browse files
committed
build: convert integration tests to standalone
1 parent a7150d4 commit a1cec20

File tree

7 files changed

+12
-50
lines changed

7 files changed

+12
-50
lines changed

integration/harness-e2e-cli/src/app/app.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import {Component} from '@angular/core';
2+
import {MatRadioButton, MatRadioGroup} from '@angular/material/radio';
23

34
@Component({
45
selector: 'app-root',
56
templateUrl: './app.component.html',
6-
standalone: false,
7+
imports: [MatRadioGroup, MatRadioButton],
78
})
89
export class AppComponent {
910
title = 'harness-e2e-cli';

integration/harness-e2e-cli/src/app/app.module.ts

Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import {enableProdMode} from '@angular/core';
2-
import {platformBrowser} from '@angular/platform-browser';
2+
import {bootstrapApplication, provideProtractorTestingSupport} from '@angular/platform-browser';
33

4-
import {AppModule} from './app/app.module';
54
import {environment} from './environments/environment';
5+
import {AppComponent} from './app/app.component';
66

77
if (environment.production) {
88
enableProdMode();
99
}
1010

11-
platformBrowser()
12-
.bootstrapModule(AppModule)
13-
.catch(err => console.error(err));
11+
bootstrapApplication(AppComponent, {
12+
providers: [provideProtractorTestingSupport()],
13+
}).catch(err => console.error(err));

integration/yarn-pnp-compat/src/app/app.component.spec.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@ import {TestBed} from '@angular/core/testing';
22
import {AppComponent} from './app.component';
33

44
describe('AppComponent', () => {
5-
beforeEach(async () => {
6-
await TestBed.configureTestingModule({
7-
declarations: [AppComponent],
8-
}).compileComponents();
9-
});
10-
115
it('should create the app', () => {
126
const fixture = TestBed.createComponent(AppComponent);
137
const app = fixture.componentInstance;

integration/yarn-pnp-compat/src/app/app.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import {Component} from '@angular/core';
2+
import {MatButtonModule} from '@angular/material/button';
23

34
@Component({
45
selector: 'app-root',
56
templateUrl: './app.component.html',
67
styleUrls: ['./app.component.scss'],
7-
standalone: false,
8+
imports: [MatButtonModule],
89
})
910
export class AppComponent {
1011
title = 'yarn-pnp-compat';

integration/yarn-pnp-compat/src/app/app.module.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
import {enableProdMode} from '@angular/core';
2-
import {platformBrowser} from '@angular/platform-browser';
2+
import {bootstrapApplication} from '@angular/platform-browser';
33

4-
import {AppModule} from './app/app.module';
54
import {environment} from './environments/environment';
5+
import {AppComponent} from './app/app.component';
66

77
if (environment.production) {
88
enableProdMode();
99
}
1010

11-
platformBrowser()
12-
.bootstrapModule(AppModule)
13-
.catch(err => console.error(err));
11+
bootstrapApplication(AppComponent).catch(err => console.error(err));

0 commit comments

Comments
 (0)