Skip to content

Commit 1a7e6f0

Browse files
alan-agius4clydin
authored andcommitted
test: remove update tests for no longer LTS versions
With this change we remove update tests for version 10 and 11 which are no longer under LTS support. (cherry picked from commit 2b0197f)
1 parent 7952e57 commit 1a7e6f0

35 files changed

+283
-357
lines changed

tests/legacy-cli/e2e/assets/10.0-project/karma.conf.js

Lines changed: 0 additions & 32 deletions
This file was deleted.

tests/legacy-cli/e2e/assets/10.0-project/package.json

Lines changed: 0 additions & 46 deletions
This file was deleted.

tests/legacy-cli/e2e/assets/10.0-project/tsconfig.json

Lines changed: 0 additions & 17 deletions
This file was deleted.

tests/legacy-cli/e2e/assets/10.0-project/tslint.json

Lines changed: 0 additions & 98 deletions
This file was deleted.

tests/legacy-cli/e2e/assets/10.0-project/.browserslistrc renamed to tests/legacy-cli/e2e/assets/12.0-project/.browserslistrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,4 @@ last 2 Edge major versions
1414
last 2 Safari major versions
1515
last 2 iOS major versions
1616
Firefox ESR
17-
not IE 9-10 # Angular support for IE 9-10 has been deprecated and will be removed as of Angular v11. To opt-in, remove the 'not' prefix on this line.
1817
not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line.

tests/legacy-cli/e2e/assets/10.0-project/.gitignore renamed to tests/legacy-cli/e2e/assets/12.0-project/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
# profiling files
1414
chrome-profiler-events*.json
15-
speed-measure-plugin*.json
1615

1716
# IDEs and editors
1817
/.idea

tests/legacy-cli/e2e/assets/10.0-project/README.md renamed to tests/legacy-cli/e2e/assets/12.0-project/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# TenProject
1+
# TwelveProject
22

3-
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 10.2.4.
3+
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 12.0.5.
44

55
## Development server
66

@@ -20,7 +20,7 @@ Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.
2020

2121
## Running end-to-end tests
2222

23-
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
23+
Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
2424

2525
## Further help
2626

tests/legacy-cli/e2e/assets/10.0-project/angular.json renamed to tests/legacy-cli/e2e/assets/12.0-project/angular.json

Lines changed: 63 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -3,107 +3,116 @@
33
"version": 1,
44
"newProjectRoot": "projects",
55
"projects": {
6-
"ten-project": {
6+
"twelve-project": {
77
"projectType": "application",
8-
"schematics": {},
8+
"schematics": {
9+
"@schematics/angular:application": {
10+
"strict": true
11+
}
12+
},
913
"root": "",
1014
"sourceRoot": "src",
1115
"prefix": "app",
1216
"architect": {
1317
"build": {
1418
"builder": "@angular-devkit/build-angular:browser",
1519
"options": {
16-
"outputPath": "dist/ten-project",
20+
"outputPath": "dist/twelve-project",
1721
"index": "src/index.html",
1822
"main": "src/main.ts",
1923
"polyfills": "src/polyfills.ts",
2024
"tsConfig": "tsconfig.app.json",
21-
"aot": true,
22-
"assets": ["src/favicon.ico", "src/assets"],
23-
"styles": ["src/styles.css"],
25+
"assets": [
26+
"src/favicon.ico",
27+
"src/assets"
28+
],
29+
"styles": [
30+
"src/styles.css"
31+
],
2432
"scripts": []
2533
},
2634
"configurations": {
2735
"production": {
28-
"fileReplacements": [
29-
{
30-
"replace": "src/environments/environment.ts",
31-
"with": "src/environments/environment.prod.ts"
32-
}
33-
],
34-
"optimization": true,
35-
"outputHashing": "all",
36-
"sourceMap": false,
37-
"extractCss": true,
38-
"namedChunks": false,
39-
"extractLicenses": true,
40-
"vendorChunk": false,
41-
"buildOptimizer": true,
4236
"budgets": [
4337
{
4438
"type": "initial",
45-
"maximumWarning": "2mb",
46-
"maximumError": "5mb"
39+
"maximumWarning": "500kb",
40+
"maximumError": "1mb"
4741
},
4842
{
4943
"type": "anyComponentStyle",
50-
"maximumWarning": "6kb",
51-
"maximumError": "10kb"
44+
"maximumWarning": "2kb",
45+
"maximumError": "4kb"
46+
}
47+
],
48+
"fileReplacements": [
49+
{
50+
"replace": "src/environments/environment.ts",
51+
"with": "src/environments/environment.prod.ts"
5252
}
53-
]
53+
],
54+
"outputHashing": "all"
55+
},
56+
"development": {
57+
"buildOptimizer": false,
58+
"optimization": false,
59+
"vendorChunk": true,
60+
"extractLicenses": false,
61+
"sourceMap": true,
62+
"namedChunks": true
5463
}
55-
}
64+
},
65+
"defaultConfiguration": "production"
5666
},
5767
"serve": {
5868
"builder": "@angular-devkit/build-angular:dev-server",
59-
"options": {
60-
"browserTarget": "ten-project:build"
61-
},
6269
"configurations": {
6370
"production": {
64-
"browserTarget": "ten-project:build:production"
71+
"browserTarget": "twelve-project:build:production"
72+
},
73+
"development": {
74+
"browserTarget": "twelve-project:build:development"
6575
}
66-
}
76+
},
77+
"defaultConfiguration": "development"
6778
},
6879
"extract-i18n": {
6980
"builder": "@angular-devkit/build-angular:extract-i18n",
7081
"options": {
71-
"browserTarget": "ten-project:build"
72-
}
73-
},
74-
"test": {
75-
"builder": "@angular-devkit/build-angular:karma",
76-
"options": {
77-
"main": "src/test.ts",
78-
"polyfills": "src/polyfills.ts",
79-
"tsConfig": "tsconfig.spec.json",
80-
"karmaConfig": "karma.conf.js",
81-
"assets": ["src/favicon.ico", "src/assets"],
82-
"styles": ["src/styles.css"],
83-
"scripts": []
84-
}
85-
},
86-
"lint": {
87-
"builder": "@angular-devkit/build-angular:tslint",
88-
"options": {
89-
"tsConfig": ["tsconfig.app.json", "tsconfig.spec.json", "e2e/tsconfig.json"],
90-
"exclude": ["**/node_modules/**"]
82+
"browserTarget": "twelve-project:build"
9183
}
9284
},
9385
"e2e": {
9486
"builder": "@angular-devkit/build-angular:protractor",
9587
"options": {
9688
"protractorConfig": "e2e/protractor.conf.js",
97-
"devServerTarget": "ten-project:serve"
89+
"devServerTarget": "twelve-project:serve"
9890
},
9991
"configurations": {
10092
"production": {
101-
"devServerTarget": "ten-project:serve:production"
93+
"devServerTarget": "twelve-project:serve:production"
10294
}
10395
}
96+
},
97+
"test": {
98+
"builder": "@angular-devkit/build-angular:karma",
99+
"options": {
100+
"main": "src/test.ts",
101+
"polyfills": "src/polyfills.ts",
102+
"tsConfig": "tsconfig.spec.json",
103+
"karmaConfig": "karma.conf.js",
104+
"assets": [
105+
"src/favicon.ico",
106+
"src/assets"
107+
],
108+
"styles": [
109+
"src/styles.css"
110+
],
111+
"scripts": []
112+
}
104113
}
105114
}
106115
}
107116
},
108-
"defaultProject": "ten-project"
117+
"defaultProject": "twelve-project"
109118
}

0 commit comments

Comments
 (0)