Skip to content

Commit fd6edd7

Browse files
committed
test: adjust unscoped auth
1 parent ec3689f commit fd6edd7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
import { expectFileNotToExist, expectFileToExist, rimraf } from '../../../utils/fs';
1+
import { expectFileNotToExist, expectFileToExist } from '../../../utils/fs';
22
import { getActivePackageManager, installWorkspacePackages } from '../../../utils/packages';
33
import { git, ng } 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 = packageManager === 'yarn';
1415
const command = ['add', '@angular/pwa', '--skip-confirmation'];
1516

1617
await expectFileNotToExist('public/manifest.webmanifest');

0 commit comments

Comments
 (0)