Skip to content

Commit a24b09e

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

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { expectFileToExist, expectFileToMatch, rimraf } from '../../../utils/fs'
22
import { ng } from '../../../utils/process';
33

44
export default async function () {
5+
process.env['NG_DEBUG'] = '1';
56
await ng('add', '@angular-devkit-tests/ng-add-simple', '--skip-confirmation');
67
await expectFileToMatch('package.json', /@angular-devkit-tests\/ng-add-simple/);
78
await expectFileToExist('ng-add-test');

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)