Skip to content

Commit 76de1bf

Browse files
alan-agius4dgp1130
authored andcommitted
test: update ssr UT to zoneless
This commit updates the UT tests to zoneless.
1 parent 455b570 commit 76de1bf

File tree

7 files changed

+7
-9
lines changed

7 files changed

+7
-9
lines changed

packages/angular/ssr/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828
"@angular/platform-browser": "19.0.0-next.2",
2929
"@angular/platform-server": "19.0.0-next.2",
3030
"@angular/router": "19.0.0-next.2",
31-
"@bazel/runfiles": "^5.8.1",
32-
"zone.js": "^0.15.0"
31+
"@bazel/runfiles": "^5.8.1"
3332
},
3433
"schematics": "./schematics/collection.json",
3534
"repository": {

packages/angular/ssr/test/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ ts_library(
3232
"@npm//@angular/platform-browser",
3333
"@npm//@angular/platform-server",
3434
"@npm//@angular/router",
35-
"@npm//zone.js",
3635
],
3736
)
3837

packages/angular/ssr/test/app-engine_spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
*/
88

99
/* eslint-disable import/no-unassigned-import */
10-
import 'zone.js/node';
1110
import '@angular/compiler';
1211
/* eslint-enable import/no-unassigned-import */
1312

packages/angular/ssr/test/app_spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
*/
88

99
/* eslint-disable import/no-unassigned-import */
10-
import 'zone.js/node';
1110
import '@angular/compiler';
1211
/* eslint-enable import/no-unassigned-import */
1312

packages/angular/ssr/test/assets_spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
*/
88

99
import { ServerAssets } from '../src/assets';
10-
import { AngularAppManifest } from '../src/manifest';
1110

1211
describe('ServerAsset', () => {
1312
let assetManager: ServerAssets;

packages/angular/ssr/test/testing-utils.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
import { Component } from '@angular/core';
9+
import { Component, provideExperimentalZonelessChangeDetection } from '@angular/core';
1010
import { bootstrapApplication } from '@angular/platform-browser';
1111
import { provideServerRendering } from '@angular/platform-server';
1212
import { RouterOutlet, Routes, provideRouter } from '@angular/router';
@@ -48,7 +48,11 @@ export function setAngularAppTestingManifest(routes: Routes, baseHref = ''): voi
4848
class AppComponent {}
4949

5050
return bootstrapApplication(AppComponent, {
51-
providers: [provideServerRendering(), provideRouter(routes)],
51+
providers: [
52+
provideServerRendering(),
53+
provideExperimentalZonelessChangeDetection(),
54+
provideRouter(routes),
55+
],
5256
});
5357
},
5458
});

yarn.lock

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,6 @@ __metadata:
968968
"@angular/router": "npm:19.0.0-next.2"
969969
"@bazel/runfiles": "npm:^5.8.1"
970970
tslib: "npm:^2.3.0"
971-
zone.js: "npm:^0.15.0"
972971
peerDependencies:
973972
"@angular/common": ^19.0.0-next.0
974973
"@angular/core": ^19.0.0-next.0

0 commit comments

Comments
 (0)