Skip to content

Commit d6ea3d6

Browse files
filipesilvahansl
authored andcommitted
test: add 1.0 update test
1 parent a84daeb commit d6ea3d6

File tree

5 files changed

+38
-15
lines changed

5 files changed

+38
-15
lines changed

tests/e2e/assets/1.0-project/karma.conf.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/*eslint-disable*/
12
// Karma configuration file, see link for more information
23
// https://karma-runner.github.io/0.13/config/configuration-file.html
34

tests/e2e/assets/1.0-project/package.json

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,25 @@
1212
},
1313
"private": true,
1414
"dependencies": {
15-
"@angular/common": "^4.0.0",
16-
"@angular/compiler": "^4.0.0",
17-
"@angular/core": "^4.0.0",
18-
"@angular/forms": "^4.0.0",
19-
"@angular/http": "^4.0.0",
20-
"@angular/platform-browser": "^4.0.0",
21-
"@angular/platform-browser-dynamic": "^4.0.0",
22-
"@angular/router": "^4.0.0",
15+
"@angular/animations": "^5.2.0",
16+
"@angular/common": "^5.2.0",
17+
"@angular/compiler": "^5.2.0",
18+
"@angular/core": "^5.2.0",
19+
"@angular/forms": "^5.2.0",
20+
"@angular/http": "^5.2.0",
21+
"@angular/platform-browser": "^5.2.0",
22+
"@angular/platform-browser-dynamic": "^5.2.0",
23+
"@angular/router": "^5.2.0",
2324
"core-js": "^2.4.1",
24-
"rxjs": "^5.1.0",
25-
"zone.js": "^0.8.4"
25+
"rxjs": "^5.5.6",
26+
"zone.js": "^0.8.19"
2627
},
2728
"devDependencies": {
2829
"@angular/cli": "0.0.0",
29-
"@angular/compiler-cli": "^4.0.0",
30+
"@angular/compiler-cli": "^5.2.0",
3031
"@types/jasmine": "2.5.38",
3132
"@types/node": "~6.0.60",
32-
"codelyzer": "~2.0.0",
33+
"codelyzer": "^4.0.1",
3334
"jasmine-core": "~2.5.2",
3435
"jasmine-spec-reporter": "~3.2.0",
3536
"karma": "~1.4.1",
@@ -39,8 +40,8 @@
3940
"karma-jasmine-html-reporter": "^0.2.2",
4041
"karma-coverage-istanbul-reporter": "^0.2.0",
4142
"protractor": "~5.1.0",
42-
"ts-node": "~2.0.0",
43-
"tslint": "~4.5.0",
44-
"typescript": "~2.2.0"
43+
"ts-node": "~4.1.0",
44+
"tslint": "~5.9.1",
45+
"typescript": "~2.4.2"
4546
}
4647
}

tests/e2e/assets/1.0-project/protractor.conf.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/*eslint-disable*/
12
// Protractor configuration file, see link for more information
23
// https://github.com/angular/protractor/blob/master/lib/config.ts
34

tests/e2e/tests/basic/update-1.0.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { createProjectFromAsset } from '../../utils/assets';
2+
import { expectToFail } from '../../utils/utils';
3+
import { ng } from '../../utils/process';
4+
import { useCIChrome } from '../../utils/project';
5+
6+
7+
export default function () {
8+
return Promise.resolve()
9+
.then(() => createProjectFromAsset('1.0-project'))
10+
.then(() => useCIChrome('.'))
11+
.then(() => expectToFail(() => ng('build')))
12+
.then(() => ng('update', '@angular/cli'))
13+
.then(() => ng('generate', 'component', 'my-comp'))
14+
.then(() => ng('test'))
15+
.then(() => ng('lint'))
16+
.then(() => ng('build', '--prod'))
17+
.then(() => ng('e2e'));
18+
}

tests/e2e/tests/basic/update-1.7.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import { createProjectFromAsset } from '../../utils/assets';
22
import { expectToFail } from '../../utils/utils';
33
import { ng } from '../../utils/process';
4+
import { useCIChrome } from '../../utils/project';
45

56

67
export default function () {
78
return Promise.resolve()
89
.then(() => createProjectFromAsset('1.7-project'))
10+
.then(() => useCIChrome('.'))
911
.then(() => expectToFail(() => ng('build')))
1012
.then(() => ng('update', '@angular/cli'))
1113
.then(() => ng('generate', 'component', 'my-comp'))

0 commit comments

Comments
 (0)