Skip to content

Commit d570949

Browse files
clydinalan-agius4
authored andcommitted
test: ensure schematics CLI E2E tests use local package registry
(cherry picked from commit 8e5717a)
1 parent 1260267 commit d570949

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/legacy-cli/e2e/tests/schematics_cli/blank-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default async function () {
1111
return;
1212
}
1313

14-
fs.writeFileSync('.npmrc', 'registry = http://localhost:4873', 'utf8');
14+
process.env['NPM_CONFIG_REGISTRY'] = 'http://localhost:4873';
1515

1616
await silentNpm(
1717
'install',

tests/legacy-cli/e2e/tests/schematics_cli/schematic-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default async function () {
1111
return;
1212
}
1313

14-
fs.writeFileSync('.npmrc', 'registry = http://localhost:4873', 'utf8');
14+
process.env['NPM_CONFIG_REGISTRY'] = 'http://localhost:4873';
1515

1616
await silentNpm(
1717
'install',

0 commit comments

Comments
 (0)