Skip to content

Commit 3ae3797

Browse files
alan-agius4clydin
authored andcommitted
test: remove ng update tests prior to 9
1 parent 31ec09c commit 3ae3797

35 files changed

+796
-311
lines changed

tests/legacy-cli/e2e/assets/8.0-project/e2e/src/app.po.ts

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

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

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

tests/legacy-cli/e2e/assets/8.0-project/src/app/app.component.html

Lines changed: 0 additions & 21 deletions
This file was deleted.
Binary file not shown.

tests/legacy-cli/e2e/assets/8.0-project/tsconfig.spec.json

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

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

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

tests/legacy-cli/e2e/assets/8.0-project/README.md renamed to tests/legacy-cli/e2e/assets/9.0-project/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# EightProject
1+
# NineProject
22

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

55
## Development server
66

tests/legacy-cli/e2e/assets/8.0-project/angular.json renamed to tests/legacy-cli/e2e/assets/9.0-project/angular.json

Lines changed: 24 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,24 @@
33
"version": 1,
44
"newProjectRoot": "projects",
55
"projects": {
6-
"eight-project": {
6+
"nine-project": {
77
"projectType": "application",
8-
"schematics": {
9-
"@schematics/angular:component": {
10-
"style": "scss"
11-
}
12-
},
8+
"schematics": {},
139
"root": "",
1410
"sourceRoot": "src",
1511
"prefix": "app",
1612
"architect": {
1713
"build": {
1814
"builder": "@angular-devkit/build-angular:browser",
1915
"options": {
20-
"outputPath": "dist/eight-project",
16+
"outputPath": "dist/nine-project",
2117
"index": "src/index.html",
2218
"main": "src/main.ts",
2319
"polyfills": "src/polyfills.ts",
2420
"tsConfig": "tsconfig.app.json",
25-
"aot": false,
26-
"assets": [
27-
"src/favicon.ico",
28-
"src/assets"
29-
],
30-
"styles": [
31-
"src/styles.scss"
32-
],
21+
"aot": true,
22+
"assets": ["src/favicon.ico", "src/assets"],
23+
"styles": ["src/styles.css"],
3324
"scripts": []
3425
},
3526
"configurations": {
@@ -45,7 +36,6 @@
4536
"sourceMap": false,
4637
"extractCss": true,
4738
"namedChunks": false,
48-
"aot": true,
4939
"extractLicenses": true,
5040
"vendorChunk": false,
5141
"buildOptimizer": true,
@@ -54,6 +44,11 @@
5444
"type": "initial",
5545
"maximumWarning": "2mb",
5646
"maximumError": "5mb"
47+
},
48+
{
49+
"type": "anyComponentStyle",
50+
"maximumWarning": "6kb",
51+
"maximumError": "10kb"
5752
}
5853
]
5954
}
@@ -62,18 +57,18 @@
6257
"serve": {
6358
"builder": "@angular-devkit/build-angular:dev-server",
6459
"options": {
65-
"browserTarget": "eight-project:build"
60+
"browserTarget": "nine-project:build"
6661
},
6762
"configurations": {
6863
"production": {
69-
"browserTarget": "eight-project:build:production"
64+
"browserTarget": "nine-project:build:production"
7065
}
7166
}
7267
},
7368
"extract-i18n": {
7469
"builder": "@angular-devkit/build-angular:extract-i18n",
7570
"options": {
76-
"browserTarget": "eight-project:build"
71+
"browserTarget": "nine-project:build"
7772
}
7873
},
7974
"test": {
@@ -83,42 +78,32 @@
8378
"polyfills": "src/polyfills.ts",
8479
"tsConfig": "tsconfig.spec.json",
8580
"karmaConfig": "karma.conf.js",
86-
"assets": [
87-
"src/favicon.ico",
88-
"src/assets"
89-
],
90-
"styles": [
91-
"src/styles.scss"
92-
],
81+
"assets": ["src/favicon.ico", "src/assets"],
82+
"styles": ["src/styles.css"],
9383
"scripts": []
9484
}
9585
},
9686
"lint": {
9787
"builder": "@angular-devkit/build-angular:tslint",
9888
"options": {
99-
"tsConfig": [
100-
"tsconfig.app.json",
101-
"tsconfig.spec.json",
102-
"e2e/tsconfig.json"
103-
],
104-
"exclude": [
105-
"**/node_modules/**"
106-
]
89+
"tsConfig": ["tsconfig.app.json", "tsconfig.spec.json", "e2e/tsconfig.json"],
90+
"exclude": ["**/node_modules/**"]
10791
}
10892
},
10993
"e2e": {
11094
"builder": "@angular-devkit/build-angular:protractor",
11195
"options": {
11296
"protractorConfig": "e2e/protractor.conf.js",
113-
"devServerTarget": "eight-project:serve"
97+
"devServerTarget": "nine-project:serve"
11498
},
11599
"configurations": {
116100
"production": {
117-
"devServerTarget": "eight-project:serve:production"
101+
"devServerTarget": "nine-project:serve:production"
118102
}
119103
}
120104
}
121105
}
122-
}},
123-
"defaultProject": "eight-project"
124-
}
106+
}
107+
},
108+
"defaultProject": "nine-project"
109+
}

tests/legacy-cli/e2e/assets/8.0-project/e2e/protractor.conf.js renamed to tests/legacy-cli/e2e/assets/9.0-project/e2e/protractor.conf.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,22 @@ const { SpecReporter } = require('jasmine-spec-reporter');
99
*/
1010
exports.config = {
1111
allScriptsTimeout: 11000,
12-
specs: [
13-
'./src/**/*.e2e-spec.ts'
14-
],
12+
specs: ['./src/**/*.e2e-spec.ts'],
1513
capabilities: {
16-
browserName: 'chrome'
14+
browserName: 'chrome',
1715
},
1816
directConnect: true,
1917
baseUrl: 'http://localhost:4200/',
2018
framework: 'jasmine',
2119
jasmineNodeOpts: {
2220
showColors: true,
2321
defaultTimeoutInterval: 30000,
24-
print: function() {}
22+
print: function () {},
2523
},
2624
onPrepare() {
2725
require('ts-node').register({
28-
project: require('path').join(__dirname, './tsconfig.json')
26+
project: require('path').join(__dirname, './tsconfig.json'),
2927
});
3028
jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
31-
}
32-
};
29+
},
30+
};

0 commit comments

Comments
 (0)