Skip to content

Commit c3a5255

Browse files
authored
test: fix nightly travis tests (#4510)
When we moved to @angular/cli some testing logic wasnt updated properly.
1 parent 8602536 commit c3a5255

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

tests/e2e/setup/500-create-project.ts

+6
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ export default function() {
4545
.filter(name => name.match(/^@angular\//))
4646
.forEach(name => {
4747
const pkgName = name.split(/\//)[1];
48+
if (pkgName == 'cli') {
49+
return;
50+
}
4851
json['dependencies'][`@angular/${pkgName}`]
4952
= `github:angular/${pkgName}-builds${label}`;
5053
});
@@ -53,6 +56,9 @@ export default function() {
5356
.filter(name => name.match(/^@angular\//))
5457
.forEach(name => {
5558
const pkgName = name.split(/\//)[1];
59+
if (pkgName == 'cli') {
60+
return;
61+
}
5662
json['devDependencies'][`@angular/${pkgName}`]
5763
= `github:angular/${pkgName}-builds${label}`;
5864
});

tests/e2e/utils/project.ts

+6
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ export function createProject(name: string, ...args: string[]) {
5151
.filter(name => name.match(/^@angular\//))
5252
.forEach(name => {
5353
const pkgName = name.split(/\//)[1];
54+
if (pkgName == 'cli') {
55+
return;
56+
}
5457
json['dependencies'][`@angular/${pkgName}`]
5558
= `github:angular/${pkgName}-builds${label}`;
5659
});
@@ -59,6 +62,9 @@ export function createProject(name: string, ...args: string[]) {
5962
.filter(name => name.match(/^@angular\//))
6063
.forEach(name => {
6164
const pkgName = name.split(/\//)[1];
65+
if (pkgName == 'cli') {
66+
return;
67+
}
6268
json['devDependencies'][`@angular/${pkgName}`]
6369
= `github:angular/${pkgName}-builds${label}`;
6470
});

0 commit comments

Comments
 (0)