diff --git a/tests/legacy-cli/e2e/tests/i18n/extract-ivy.ts b/tests/legacy-cli/e2e/tests/i18n/extract-ivy.ts index 3ec132d6a3a0..00b95572e2bc 100644 --- a/tests/legacy-cli/e2e/tests/i18n/extract-ivy.ts +++ b/tests/legacy-cli/e2e/tests/i18n/extract-ivy.ts @@ -1,7 +1,7 @@ import { join } from 'path'; import { getGlobalVariable } from '../../utils/env'; import { expectFileToMatch, writeFile } from '../../utils/fs'; -import { installPackage, uninstallPackage } from '../../utils/packages'; +import { uninstallPackage } from '../../utils/packages'; import { ng } from '../../utils/process'; import { expectToFail } from '../../utils/utils'; import { readNgVersion } from '../../utils/version'; @@ -38,13 +38,12 @@ export default async function () { if (getGlobalVariable('argv')['ng-snapshots']) { localizeVersion = require('../../ng-snapshot/package.json').dependencies['@angular/localize']; } - await installPackage(localizeVersion); + await ng('add', localizeVersion, '--skip-confirmation'); // Should not show any warnings when extracting const { stderr: message5 } = await ng('extract-i18n'); if (message5.includes('WARNING')) { - // TODO: enable once https://github.com/angular/angular/pull/56300 is released. - // throw new Error('Expected no warnings to be shown. STDERR:\n' + message5); + throw new Error('Expected no warnings to be shown. STDERR:\n' + message5); } await expectFileToMatch('messages.xlf', 'Hello world');