Skip to content

Commit

Permalink
test(@angular/cli): fix version specifier test
Browse files Browse the repository at this point in the history
Remove `ng add @angular/localize@latest` test. This is currently failing as `@angular/localize@latest` does not support Node.js version 14.15
  • Loading branch information
alan-agius4 authored and dgp1130 committed Nov 17, 2022
1 parent 9ce386c commit 9dcea09
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions tests/legacy-cli/e2e/tests/commands/add/version-specifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ export default async function () {
throw new Error('Installation was not skipped');
}

const output2 = await ng('add', '@angular/localize@latest', '--skip-confirmation');
if (output2.stdout.includes('Skipping installation: Package already installed')) {
throw new Error('Installation should not have been skipped');
}

// v12.2.0 has a package.json engine field that supports Node.js v16+
const output3 = await ng('add', '@angular/localize@12.2.0', '--skip-confirmation');
if (output3.stdout.includes('Skipping installation: Package already installed')) {
Expand Down

0 comments on commit 9dcea09

Please sign in to comment.