File tree Expand file tree Collapse file tree
packages/angular/cli/commands
tests/legacy-cli/e2e/tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,7 +43,6 @@ const pickManifest = require('npm-pick-manifest') as (
4343
4444const oldConfigFileNames = [ '.angular-cli.json' , 'angular-cli.json' ] ;
4545
46-
4746/**
4847 * Disable CLI version mismatch checks and forces usage of the invoked CLI
4948 * instead of invoking the local installed version.
@@ -494,8 +493,9 @@ export class UpdateCommand extends Command<UpdateCommandSchema> {
494493 }
495494 }
496495
496+ let result : boolean ;
497497 if ( typeof options . migrateOnly == 'string' ) {
498- await this . executeMigration (
498+ result = await this . executeMigration (
499499 packageName ,
500500 migrations ,
501501 options . migrateOnly ,
@@ -512,15 +512,15 @@ export class UpdateCommand extends Command<UpdateCommandSchema> {
512512 const migrationRange = new semver . Range (
513513 '>' + from + ' <=' + ( options . to || packageNode . version ) ,
514514 ) ;
515- await this . executeMigrations (
515+ result = await this . executeMigrations (
516516 packageName ,
517517 migrations ,
518518 migrationRange ,
519519 options . createCommits ,
520520 ) ;
521521 }
522522
523- return 1 ;
523+ return result ? 0 : 1 ;
524524 }
525525
526526 const requests : {
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export default async function () {
2828
2929 await installWorkspacePackages ( ) ;
3030 } else {
31- await installPackage ( '@angular/material-moment-adapter' ) ;
31+ await installPackage ( '@angular/material-moment-adapter@11 ' ) ;
3232 }
3333
3434 await installPackage ( 'moment' ) ;
Original file line number Diff line number Diff line change @@ -18,11 +18,6 @@ export default async function () {
1818 throw new Error ( 'Installation was not skipped' ) ;
1919 }
2020
21- const output2 = await ng ( 'add' , '@angular/localize@latest' ) ;
22- if ( output2 . stdout . includes ( 'Skipping installation: Package already installed' ) ) {
23- throw new Error ( 'Installation should not have been skipped' ) ;
24- }
25-
2621 const output3 = await ng ( 'add' , '@angular/localize@10.0.0' ) ;
2722 if ( output3 . stdout . includes ( 'Skipping installation: Package already installed' ) ) {
2823 throw new Error ( 'Installation should not have been skipped' ) ;
You can’t perform that action at this time.
0 commit comments