"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/legacy-cli/e2e/tests/commands/add/registry-option.ts" between
angular-cli-12.1.2.tar.gz and angular-cli-12.1.3.tar.gz

About: Angular CLI is a command line interface for Angular.

registry-option.ts  (angular-cli-12.1.2):registry-option.ts  (angular-cli-12.1.3)
skipping to change at line 13 skipping to change at line 13
import { ng } from '../../../utils/process'; import { ng } from '../../../utils/process';
import { expectToFail } from '../../../utils/utils'; import { expectToFail } from '../../../utils/utils';
export default async function () { export default async function () {
const testRegistry = getGlobalVariable('package-registry'); const testRegistry = getGlobalVariable('package-registry');
// Setup an invalid registry // Setup an invalid registry
await writeMultipleFiles({ await writeMultipleFiles({
'.npmrc': 'registry=http://127.0.0.1:9999', '.npmrc': 'registry=http://127.0.0.1:9999',
}); });
// The environment variable has priority over the .npmrc // The environment variable has priority over the .npmrc
const originalRegistryVariable = process.env['NPM_CONFIG_REGISTRY'];
delete process.env['NPM_CONFIG_REGISTRY']; delete process.env['NPM_CONFIG_REGISTRY'];
try { await expectToFail(() => ng('add', '@angular/pwa', '--skip-confirmation'));
await expectToFail(() => ng('add', '@angular/pwa', '--skip-confirmation'));
await ng('add', `--registry=${testRegistry}`, '@angular/pwa', '--skip-confir await ng('add', `--registry=${testRegistry}`, '@angular/pwa', '--skip-confirma
mation'); tion');
await expectFileToExist('src/manifest.webmanifest'); await expectFileToExist('src/manifest.webmanifest');
} finally {
process.env['NPM_CONFIG_REGISTRY'] = originalRegistryVariable;
}
} }
 End of changes. 4 change blocks. 
9 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)