Skip to content

Commit

Permalink
test(@angular/cli): update the update test to address node.js incompa…
Browse files Browse the repository at this point in the history
…tability failures
  • Loading branch information
alan-agius4 authored and dgp1130 committed Nov 17, 2022
1 parent 2fbeb04 commit e8824b0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/legacy-cli/e2e/tests/update/update-9.ts
Expand Up @@ -13,6 +13,8 @@ export default async function () {
await setRegistry(false);
await installWorkspacePackages();

process.env['NG_DISABLE_VERSION_CHECK'] = '1';

// Update Angular to 10
await installPackage('@angular/cli@9');
const { stdout } = await ng('update', '@angular/cli@10.x', '@angular/core@10.x');
Expand All @@ -23,6 +25,8 @@ export default async function () {
// Update Angular to 11
await ng('update', '@angular/cli@11', '@angular/core@11');

delete process.env['NG_DISABLE_VERSION_CHECK'];

// Update Angular to 12
await ng('update', '@angular/cli@12', '@angular/core@12');
} finally {
Expand Down

0 comments on commit e8824b0

Please sign in to comment.