Skip to content

Commit caee381

Browse files
authored
angular: update to v21 and drop jest support now that vitest support is official (#31458)
1 parent 9f7f53b commit caee381

File tree

15 files changed

+135
-180
lines changed

15 files changed

+135
-180
lines changed

generators/angular/__snapshots__/generator.spec.ts.snap

Lines changed: 77 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ exports[`generator - angular gateway-jwt-skipUserManagement(true)-withAdminUi(fa
6363
"clientRootDir": "clientRoot/",
6464
"clientSrcDir": "clientRoot/src/",
6565
"clientTestDir": "clientRoot/test/",
66-
"clientTestFramework": "jest",
66+
"clientTestFramework": "vitest",
6767
"clientTestFrameworkAny": true,
68-
"clientTestFrameworkJest": true,
69-
"clientTestFrameworkName": "Jest",
70-
"clientTestFrameworkVitest": false,
68+
"clientTestFrameworkJest": false,
69+
"clientTestFrameworkName": "Vitest",
70+
"clientTestFrameworkVitest": true,
7171
"clientTestFrameworks": undefined,
7272
"clientTestFrameworksAny": false,
7373
"clientTestFrameworksCypress": false,
@@ -327,9 +327,6 @@ exports[`generator - angular gateway-jwt-skipUserManagement(true)-withAdminUi(fa
327327
"clientRoot/eslint.config.ts": {
328328
"stateCleared": "modified",
329329
},
330-
"clientRoot/jest.conf.js": {
331-
"stateCleared": "modified",
332-
},
333330
"clientRoot/ngsw-config.json": {
334331
"stateCleared": "modified",
335332
},
@@ -939,6 +936,9 @@ exports[`generator - angular gateway-jwt-skipUserManagement(true)-withAdminUi(fa
939936
"clientRoot/src/declarations.d.ts": {
940937
"stateCleared": "modified",
941938
},
939+
"clientRoot/src/default-test-providers.ts": {
940+
"stateCleared": "modified",
941+
},
942942
"clientRoot/src/environments/environment.development.ts": {
943943
"stateCleared": "modified",
944944
},
@@ -972,6 +972,9 @@ exports[`generator - angular gateway-jwt-skipUserManagement(true)-withAdminUi(fa
972972
"clientRoot/tsconfig.spec.json": {
973973
"stateCleared": "modified",
974974
},
975+
"clientRoot/vitest-base.config.ts": {
976+
"stateCleared": "modified",
977+
},
975978
"package.json": {
976979
"stateCleared": "modified",
977980
},
@@ -1001,7 +1004,7 @@ exports[`generator - angular gateway-jwt-skipUserManagement(true)-withAdminUi(fa
10011004
},
10021005
{
10031006
"key": "sonar.testExecutionReportPaths",
1004-
"value": "target/test-results/jest/TESTS-results-sonar.xml",
1007+
"value": "target/test-results/TESTS-results-sonar-vitest.xml",
10051008
},
10061009
{
10071010
"key": "sonar.javascript.lcov.reportPaths",
@@ -1090,11 +1093,11 @@ exports[`generator - angular gateway-oauth2-withAdminUi(true)-skipJhipsterDepend
10901093
"clientRootDir": "clientRoot/",
10911094
"clientSrcDir": "clientRoot/src/",
10921095
"clientTestDir": "clientRoot/test/",
1093-
"clientTestFramework": "jest",
1096+
"clientTestFramework": "vitest",
10941097
"clientTestFrameworkAny": true,
1095-
"clientTestFrameworkJest": true,
1096-
"clientTestFrameworkName": "Jest",
1097-
"clientTestFrameworkVitest": false,
1098+
"clientTestFrameworkJest": false,
1099+
"clientTestFrameworkName": "Vitest",
1100+
"clientTestFrameworkVitest": true,
10981101
"clientTestFrameworks": undefined,
10991102
"clientTestFrameworksAny": false,
11001103
"clientTestFrameworksCypress": false,
@@ -1360,9 +1363,6 @@ exports[`generator - angular gateway-oauth2-withAdminUi(true)-skipJhipsterDepend
13601363
"clientRoot/eslint.config.ts": {
13611364
"stateCleared": "modified",
13621365
},
1363-
"clientRoot/jest.conf.js": {
1364-
"stateCleared": "modified",
1365-
},
13661366
"clientRoot/ngsw-config.json": {
13671367
"stateCleared": "modified",
13681368
},
@@ -2194,6 +2194,9 @@ exports[`generator - angular gateway-oauth2-withAdminUi(true)-skipJhipsterDepend
21942194
"clientRoot/src/declarations.d.ts": {
21952195
"stateCleared": "modified",
21962196
},
2197+
"clientRoot/src/default-test-providers.ts": {
2198+
"stateCleared": "modified",
2199+
},
21972200
"clientRoot/src/environments/environment.development.ts": {
21982201
"stateCleared": "modified",
21992202
},
@@ -2230,6 +2233,9 @@ exports[`generator - angular gateway-oauth2-withAdminUi(true)-skipJhipsterDepend
22302233
"clientRoot/tsconfig.spec.json": {
22312234
"stateCleared": "modified",
22322235
},
2236+
"clientRoot/vitest-base.config.ts": {
2237+
"stateCleared": "modified",
2238+
},
22332239
"package.json": {
22342240
"stateCleared": "modified",
22352241
},
@@ -2260,7 +2266,7 @@ exports[`generator - angular gateway-oauth2-withAdminUi(true)-skipJhipsterDepend
22602266
},
22612267
{
22622268
"key": "sonar.testExecutionReportPaths",
2263-
"value": "target/test-results/jest/TESTS-results-sonar.xml",
2269+
"value": "target/test-results/TESTS-results-sonar-vitest.xml",
22642270
},
22652271
{
22662272
"key": "sonar.javascript.lcov.reportPaths",
@@ -2351,11 +2357,11 @@ exports[`generator - angular microservice-jwt-skipUserManagement(false)-withAdmi
23512357
"clientRootDir": "clientRoot/",
23522358
"clientSrcDir": "clientRoot/src/",
23532359
"clientTestDir": "clientRoot/test/",
2354-
"clientTestFramework": "jest",
2360+
"clientTestFramework": "vitest",
23552361
"clientTestFrameworkAny": true,
2356-
"clientTestFrameworkJest": true,
2357-
"clientTestFrameworkName": "Jest",
2358-
"clientTestFrameworkVitest": false,
2362+
"clientTestFrameworkJest": false,
2363+
"clientTestFrameworkName": "Vitest",
2364+
"clientTestFrameworkVitest": true,
23592365
"clientTestFrameworks": undefined,
23602366
"clientTestFrameworksAny": false,
23612367
"clientTestFrameworksCypress": false,
@@ -2609,9 +2615,6 @@ exports[`generator - angular microservice-jwt-skipUserManagement(false)-withAdmi
26092615
"clientRoot/eslint.config.ts": {
26102616
"stateCleared": "modified",
26112617
},
2612-
"clientRoot/jest.conf.js": {
2613-
"stateCleared": "modified",
2614-
},
26152618
"clientRoot/ngsw-config.json": {
26162619
"stateCleared": "modified",
26172620
},
@@ -3197,6 +3200,9 @@ exports[`generator - angular microservice-jwt-skipUserManagement(false)-withAdmi
31973200
"clientRoot/src/declarations.d.ts": {
31983201
"stateCleared": "modified",
31993202
},
3203+
"clientRoot/src/default-test-providers.ts": {
3204+
"stateCleared": "modified",
3205+
},
32003206
"clientRoot/src/environments/environment.development.ts": {
32013207
"stateCleared": "modified",
32023208
},
@@ -3230,6 +3236,9 @@ exports[`generator - angular microservice-jwt-skipUserManagement(false)-withAdmi
32303236
"clientRoot/tsconfig.spec.json": {
32313237
"stateCleared": "modified",
32323238
},
3239+
"clientRoot/vitest-base.config.ts": {
3240+
"stateCleared": "modified",
3241+
},
32333242
"clientRoot/webpack/environment.js": {
32343243
"stateCleared": "modified",
32353244
},
@@ -3277,7 +3286,7 @@ exports[`generator - angular microservice-jwt-skipUserManagement(false)-withAdmi
32773286
},
32783287
{
32793288
"key": "sonar.testExecutionReportPaths",
3280-
"value": "target/test-results/jest/TESTS-results-sonar.xml",
3289+
"value": "target/test-results/TESTS-results-sonar-vitest.xml",
32813290
},
32823291
{
32833292
"key": "sonar.javascript.lcov.reportPaths",
@@ -3378,11 +3387,11 @@ exports[`generator - angular microservice-oauth2-withAdminUi(true)-skipJhipsterD
33783387
"clientRootDir": "",
33793388
"clientSrcDir": "src/main/webapp/",
33803389
"clientTestDir": "src/test/javascript/",
3381-
"clientTestFramework": "jest",
3390+
"clientTestFramework": "vitest",
33823391
"clientTestFrameworkAny": true,
3383-
"clientTestFrameworkJest": true,
3384-
"clientTestFrameworkName": "Jest",
3385-
"clientTestFrameworkVitest": false,
3392+
"clientTestFrameworkJest": false,
3393+
"clientTestFrameworkName": "Vitest",
3394+
"clientTestFrameworkVitest": true,
33863395
"clientTestFrameworks": undefined,
33873396
"clientTestFrameworksAny": false,
33883397
"clientTestFrameworksCypress": false,
@@ -3639,9 +3648,6 @@ exports[`generator - angular microservice-oauth2-withAdminUi(true)-skipJhipsterD
36393648
"eslint.config.ts": {
36403649
"stateCleared": "modified",
36413650
},
3642-
"jest.conf.js": {
3643-
"stateCleared": "modified",
3644-
},
36453651
"ngsw-config.json": {
36463652
"stateCleared": "modified",
36473653
},
@@ -4236,6 +4242,9 @@ exports[`generator - angular microservice-oauth2-withAdminUi(true)-skipJhipsterD
42364242
"src/main/webapp/declarations.d.ts": {
42374243
"stateCleared": "modified",
42384244
},
4245+
"src/main/webapp/default-test-providers.ts": {
4246+
"stateCleared": "modified",
4247+
},
42394248
"src/main/webapp/environments/environment.development.ts": {
42404249
"stateCleared": "modified",
42414250
},
@@ -4269,6 +4278,9 @@ exports[`generator - angular microservice-oauth2-withAdminUi(true)-skipJhipsterD
42694278
"tsconfig.spec.json": {
42704279
"stateCleared": "modified",
42714280
},
4281+
"vitest-base.config.ts": {
4282+
"stateCleared": "modified",
4283+
},
42724284
"webpack/environment.js": {
42734285
"stateCleared": "modified",
42744286
},
@@ -4313,7 +4325,7 @@ exports[`generator - angular microservice-oauth2-withAdminUi(true)-skipJhipsterD
43134325
},
43144326
{
43154327
"key": "sonar.testExecutionReportPaths",
4316-
"value": "target/test-results/jest/TESTS-results-sonar.xml",
4328+
"value": "target/test-results/TESTS-results-sonar-vitest.xml",
43174329
},
43184330
{
43194331
"key": "sonar.javascript.lcov.reportPaths",
@@ -4419,11 +4431,11 @@ exports[`generator - angular monolith-jwt-skipUserManagement(false)-withAdminUi(
44194431
"clientRootDir": "",
44204432
"clientSrcDir": "src/main/webapp/",
44214433
"clientTestDir": "src/test/javascript/",
4422-
"clientTestFramework": "jest",
4434+
"clientTestFramework": "vitest",
44234435
"clientTestFrameworkAny": true,
4424-
"clientTestFrameworkJest": true,
4425-
"clientTestFrameworkName": "Jest",
4426-
"clientTestFrameworkVitest": false,
4436+
"clientTestFrameworkJest": false,
4437+
"clientTestFrameworkName": "Vitest",
4438+
"clientTestFrameworkVitest": true,
44274439
"clientTestFrameworks": undefined,
44284440
"clientTestFrameworksAny": false,
44294441
"clientTestFrameworksCypress": false,
@@ -4690,9 +4702,6 @@ exports[`generator - angular monolith-jwt-skipUserManagement(false)-withAdminUi(
46904702
"eslint.config.ts": {
46914703
"stateCleared": "modified",
46924704
},
4693-
"jest.conf.js": {
4694-
"stateCleared": "modified",
4695-
},
46964705
"ngsw-config.json": {
46974706
"stateCleared": "modified",
46984707
},
@@ -5695,6 +5704,9 @@ exports[`generator - angular monolith-jwt-skipUserManagement(false)-withAdminUi(
56955704
"src/main/webapp/declarations.d.ts": {
56965705
"stateCleared": "modified",
56975706
},
5707+
"src/main/webapp/default-test-providers.ts": {
5708+
"stateCleared": "modified",
5709+
},
56985710
"src/main/webapp/environments/environment.development.ts": {
56995711
"stateCleared": "modified",
57005712
},
@@ -5731,6 +5743,9 @@ exports[`generator - angular monolith-jwt-skipUserManagement(false)-withAdminUi(
57315743
"tsconfig.spec.json": {
57325744
"stateCleared": "modified",
57335745
},
5746+
"vitest-base.config.ts": {
5747+
"stateCleared": "modified",
5748+
},
57345749
}
57355750
`;
57365751
@@ -5758,7 +5773,7 @@ exports[`generator - angular monolith-jwt-skipUserManagement(false)-withAdminUi(
57585773
},
57595774
{
57605775
"key": "sonar.testExecutionReportPaths",
5761-
"value": "target/test-results/jest/TESTS-results-sonar.xml",
5776+
"value": "target/test-results/TESTS-results-sonar-vitest.xml",
57625777
},
57635778
{
57645779
"key": "sonar.javascript.lcov.reportPaths",
@@ -5849,11 +5864,11 @@ exports[`generator - angular monolith-oauth2-withAdminUi(false)-skipJhipsterDepe
58495864
"clientRootDir": "",
58505865
"clientSrcDir": "src/main/webapp/",
58515866
"clientTestDir": "src/test/javascript/",
5852-
"clientTestFramework": "jest",
5867+
"clientTestFramework": "vitest",
58535868
"clientTestFrameworkAny": true,
5854-
"clientTestFrameworkJest": true,
5855-
"clientTestFrameworkName": "Jest",
5856-
"clientTestFrameworkVitest": false,
5869+
"clientTestFrameworkJest": false,
5870+
"clientTestFrameworkName": "Vitest",
5871+
"clientTestFrameworkVitest": true,
58575872
"clientTestFrameworks": undefined,
58585873
"clientTestFrameworksAny": false,
58595874
"clientTestFrameworksCypress": false,
@@ -6113,9 +6128,6 @@ exports[`generator - angular monolith-oauth2-withAdminUi(false)-skipJhipsterDepe
61136128
"eslint.config.ts": {
61146129
"stateCleared": "modified",
61156130
},
6116-
"jest.conf.js": {
6117-
"stateCleared": "modified",
6118-
},
61196131
"ngsw-config.json": {
61206132
"stateCleared": "modified",
61216133
},
@@ -6698,6 +6710,9 @@ exports[`generator - angular monolith-oauth2-withAdminUi(false)-skipJhipsterDepe
66986710
"src/main/webapp/declarations.d.ts": {
66996711
"stateCleared": "modified",
67006712
},
6713+
"src/main/webapp/default-test-providers.ts": {
6714+
"stateCleared": "modified",
6715+
},
67016716
"src/main/webapp/environments/environment.development.ts": {
67026717
"stateCleared": "modified",
67036718
},
@@ -6731,6 +6746,9 @@ exports[`generator - angular monolith-oauth2-withAdminUi(false)-skipJhipsterDepe
67316746
"tsconfig.spec.json": {
67326747
"stateCleared": "modified",
67336748
},
6749+
"vitest-base.config.ts": {
6750+
"stateCleared": "modified",
6751+
},
67346752
}
67356753
`;
67366754
@@ -6757,7 +6775,7 @@ exports[`generator - angular monolith-oauth2-withAdminUi(false)-skipJhipsterDepe
67576775
},
67586776
{
67596777
"key": "sonar.testExecutionReportPaths",
6760-
"value": "target/test-results/jest/TESTS-results-sonar.xml",
6778+
"value": "target/test-results/TESTS-results-sonar-vitest.xml",
67616779
},
67626780
{
67636781
"key": "sonar.javascript.lcov.reportPaths",
@@ -6845,11 +6863,11 @@ exports[`generator - angular monolith-session-skipUserManagement(true)-withAdmin
68456863
"clientRootDir": "",
68466864
"clientSrcDir": "src/main/webapp/",
68476865
"clientTestDir": "src/test/javascript/",
6848-
"clientTestFramework": "jest",
6866+
"clientTestFramework": "vitest",
68496867
"clientTestFrameworkAny": true,
6850-
"clientTestFrameworkJest": true,
6851-
"clientTestFrameworkName": "Jest",
6852-
"clientTestFrameworkVitest": false,
6868+
"clientTestFrameworkJest": false,
6869+
"clientTestFrameworkName": "Vitest",
6870+
"clientTestFrameworkVitest": true,
68536871
"clientTestFrameworks": undefined,
68546872
"clientTestFrameworksAny": false,
68556873
"clientTestFrameworksCypress": false,
@@ -7109,9 +7127,6 @@ exports[`generator - angular monolith-session-skipUserManagement(true)-withAdmin
71097127
"eslint.config.ts": {
71107128
"stateCleared": "modified",
71117129
},
7112-
"jest.conf.js": {
7113-
"stateCleared": "modified",
7114-
},
71157130
"ngsw-config.json": {
71167131
"stateCleared": "modified",
71177132
},
@@ -7703,6 +7718,9 @@ exports[`generator - angular monolith-session-skipUserManagement(true)-withAdmin
77037718
"src/main/webapp/declarations.d.ts": {
77047719
"stateCleared": "modified",
77057720
},
7721+
"src/main/webapp/default-test-providers.ts": {
7722+
"stateCleared": "modified",
7723+
},
77067724
"src/main/webapp/environments/environment.development.ts": {
77077725
"stateCleared": "modified",
77087726
},
@@ -7736,6 +7754,9 @@ exports[`generator - angular monolith-session-skipUserManagement(true)-withAdmin
77367754
"tsconfig.spec.json": {
77377755
"stateCleared": "modified",
77387756
},
7757+
"vitest-base.config.ts": {
7758+
"stateCleared": "modified",
7759+
},
77397760
}
77407761
`;
77417762
@@ -7762,7 +7783,7 @@ exports[`generator - angular monolith-session-skipUserManagement(true)-withAdmin
77627783
},
77637784
{
77647785
"key": "sonar.testExecutionReportPaths",
7765-
"value": "target/test-results/jest/TESTS-results-sonar.xml",
7786+
"value": "target/test-results/TESTS-results-sonar-vitest.xml",
77667787
},
77677788
{
77687789
"key": "sonar.javascript.lcov.reportPaths",

0 commit comments

Comments
 (0)