Skip to content

Commit c9f48d4

Browse files
committed
WIP
1 parent 33f2b02 commit c9f48d4

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tests/legacy-cli/e2e/tests/commands/add/secure-registry.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
import { expectFileNotToExist, expectFileToExist, rimraf } from '../../../utils/fs';
22
import { getActivePackageManager, installWorkspacePackages } from '../../../utils/packages';
3-
import { git, ng } from '../../../utils/process';
3+
import { git, ng, exec } from '../../../utils/process';
44
import { createNpmConfigForAuthentication } from '../../../utils/registry';
55
import { expectToFail } from '../../../utils/utils';
66

77
export default async function () {
8+
process.env['NG_DEBUG'] = '1';
89
const originalNpmConfigRegistry = process.env['NPM_CONFIG_REGISTRY'];
910
try {
1011
// The environment variable has priority over the .npmrc
1112
delete process.env['NPM_CONFIG_REGISTRY'];
1213
const packageManager = getActivePackageManager();
13-
const supportsUnscopedAuth = packageManager !== 'bun' && packageManager !== 'npm';
14+
const supportsUnscopedAuth = false;
1415
const command = ['add', '@angular/pwa', '--skip-confirmation'];
1516

1617
await expectFileNotToExist('public/manifest.webmanifest');
@@ -28,6 +29,11 @@ export default async function () {
2829
await expectFileNotToExist('public/manifest.webmanifest');
2930

3031
await createNpmConfigForAuthentication(true);
32+
33+
if (packageManager === 'yarn') {
34+
await exec('yarn', 'info', '--verbose', '@angular/pwa');
35+
}
36+
3137
await ng(...command);
3238
await expectFileToExist('public/manifest.webmanifest');
3339
await git('clean', '-dxf');

0 commit comments

Comments
 (0)