Skip to content

Commit a84daeb

Browse files
filipesilvahansl
authored andcommitted
test: add more checks to 1.7 update test
1 parent 70f4403 commit a84daeb

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

tests/e2e/tests/basic/update-1.7-short.ts renamed to tests/e2e/tests/basic/update-1.7-longhand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ export default function () {
77
return Promise.resolve()
88
.then(() => createProjectFromAsset('1.7-project'))
99
.then(() => expectToFail(() => ng('build')))
10-
.then(() => ng('update', '@angular/cli'))
10+
.then(() => ng('update', '@angular/cli', '--migrate-only', '--from=1.7.1'))
1111
.then(() => ng('build'));
1212
}

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ export default function () {
77
return Promise.resolve()
88
.then(() => createProjectFromAsset('1.7-project'))
99
.then(() => expectToFail(() => ng('build')))
10-
.then(() => ng('update', '@angular/cli', '--migrate-only', '--from=1.7.1'))
11-
.then(() => ng('build'));
10+
.then(() => ng('update', '@angular/cli'))
11+
.then(() => ng('generate', 'component', 'my-comp'))
12+
.then(() => ng('test'))
13+
.then(() => ng('lint'))
14+
.then(() => ng('build', '--prod'))
15+
.then(() => ng('e2e'));
1216
}

0 commit comments

Comments
 (0)