Skip to content

Commit 0530c6d

Browse files
alan-agius4pterratpro
authored andcommitted
build: update Angular tooling packages to 15.0.0-next.3 (angular#47584)
- This update is needed to implement the changes in `ng add localize` angular#47569 - Add missing `root` options to all `angular.json`, this is required as otherwise the angular.json validation will fail. - Remove `require.context` from test.ts integration test, as this is no longer needed. - Update payloads golden files. PR Close angular#47584
1 parent 3812a29 commit 0530c6d

File tree

20 files changed

+525
-537
lines changed

20 files changed

+525
-537
lines changed

goldens/size-tracking/integration-payloads.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cli-hello-world": {
33
"uncompressed": {
44
"runtime": 1083,
5-
"main": 125134,
5+
"main": 124531,
66
"polyfills": 33824
77
}
88
},
@@ -19,7 +19,7 @@
1919
"cli-hello-world-ivy-compat": {
2020
"uncompressed": {
2121
"runtime": 1102,
22-
"main": 132120,
22+
"main": 131519,
2323
"polyfills": 33957
2424
}
2525
},
@@ -33,22 +33,22 @@
3333
"cli-hello-world-lazy": {
3434
"uncompressed": {
3535
"runtime": 2835,
36-
"main": 227905,
36+
"main": 225269,
3737
"polyfills": 33842,
3838
"src_app_lazy_lazy_routes_ts": 487
3939
}
4040
},
4141
"forms": {
4242
"uncompressed": {
4343
"runtime": 1060,
44-
"main": 157136,
44+
"main": 155712,
4545
"polyfills": 33915
4646
}
4747
},
4848
"animations": {
4949
"uncompressed": {
5050
"runtime": 1070,
51-
"main": 156816,
51+
"main": 155920,
5252
"polyfills": 33814
5353
}
5454
},

integration/animations/src/test.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,8 @@ import {
77
platformBrowserDynamicTesting
88
} from '@angular/platform-browser-dynamic/testing';
99

10-
declare const require: any;
11-
1210
// First, initialize the Angular testing environment.
1311
getTestBed().initTestEnvironment(
1412
BrowserDynamicTestingModule,
1513
platformBrowserDynamicTesting()
1614
);
17-
// Then we find all the tests.
18-
const context = require.context('./', true, /\.spec\.ts$/);
19-
// And load the modules.
20-
context.keys().map(context);

integration/cli-elements-universal/src/main.server.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@ if (environment.production) {
88
}
99

1010
export { AppServerModule } from './app/app.server.module';
11-
export { renderModule, renderModuleFactory } from '@angular/platform-server';

integration/cli-elements-universal/src/test.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,9 @@ import {
77
platformBrowserDynamicTesting
88
} from '@angular/platform-browser-dynamic/testing';
99

10-
declare const require: {
11-
context(path: string, deep?: boolean, filter?: RegExp): {
12-
keys(): string[];
13-
<T>(id: string): T;
14-
};
15-
};
16-
1710
// First, initialize the Angular testing environment.
1811
getTestBed().initTestEnvironment(
1912
BrowserDynamicTestingModule,
2013
platformBrowserDynamicTesting()
2114
);
22-
// Then we find all the tests.
23-
const context = require.context('./', true, /\.spec\.ts$/);
24-
// And load the modules.
25-
context.keys().map(context);
15+

integration/cli-hello-world-ivy-compat/src/test.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,8 @@ import {
77
platformBrowserDynamicTesting
88
} from '@angular/platform-browser-dynamic/testing';
99

10-
declare const require: any;
11-
1210
// First, initialize the Angular testing environment.
1311
getTestBed().initTestEnvironment(
1412
BrowserDynamicTestingModule,
1513
platformBrowserDynamicTesting()
1614
);
17-
// Then we find all the tests.
18-
const context = require.context('./', true, /\.spec\.ts$/);
19-
// And load the modules.
20-
context.keys().map(context);

integration/cli-hello-world-ivy-i18n/src/test.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,8 @@ import {
77
platformBrowserDynamicTesting
88
} from '@angular/platform-browser-dynamic/testing';
99

10-
declare const require: any;
11-
1210
// First, initialize the Angular testing environment.
1311
getTestBed().initTestEnvironment(
1412
BrowserDynamicTestingModule,
1513
platformBrowserDynamicTesting()
1614
);
17-
// Then we find all the tests.
18-
const context = require.context('./', true, /\.spec\.ts$/);
19-
// And load the modules.
20-
context.keys().map(context);

integration/cli-hello-world-lazy/src/test.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,8 @@ import {
77
platformBrowserDynamicTesting
88
} from '@angular/platform-browser-dynamic/testing';
99

10-
declare const require: any;
11-
1210
// First, initialize the Angular testing environment.
1311
getTestBed().initTestEnvironment(
1412
BrowserDynamicTestingModule,
1513
platformBrowserDynamicTesting()
1614
);
17-
// Then we find all the tests.
18-
const context = require.context('./', true, /\.spec\.ts$/);
19-
// And load the modules.
20-
context.keys().map(context);

integration/cli-hello-world-mocha/src/test.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,5 @@ import 'zone.js/testing';
55
import {getTestBed} from '@angular/core/testing';
66
import {BrowserDynamicTestingModule, platformBrowserDynamicTesting} from '@angular/platform-browser-dynamic/testing';
77

8-
declare const require: any;
9-
108
// First, initialize the Angular testing environment.
119
getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting());
12-
// Then we find all the tests.
13-
const context = require.context('./', true, /\.spec\.ts$/);
14-
// And load the modules.
15-
context.keys().map(context);

integration/cli-hello-world-ts-47/src/test.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,8 @@ import {
77
platformBrowserDynamicTesting
88
} from '@angular/platform-browser-dynamic/testing';
99

10-
declare const require: any;
11-
1210
// First, initialize the Angular testing environment.
1311
getTestBed().initTestEnvironment(
1412
BrowserDynamicTestingModule,
1513
platformBrowserDynamicTesting()
1614
);
17-
// Then we find all the tests.
18-
const context = require.context('./', true, /\.spec\.ts$/);
19-
// And load the modules.
20-
context.keys().map(context);

integration/cli-hello-world/src/test.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,8 @@ import {
77
platformBrowserDynamicTesting
88
} from '@angular/platform-browser-dynamic/testing';
99

10-
declare const require: any;
11-
1210
// First, initialize the Angular testing environment.
1311
getTestBed().initTestEnvironment(
1412
BrowserDynamicTestingModule,
1513
platformBrowserDynamicTesting()
1614
);
17-
// Then we find all the tests.
18-
const context = require.context('./', true, /\.spec\.ts$/);
19-
// And load the modules.
20-
context.keys().map(context);

0 commit comments

Comments
 (0)