Skip to content

Commit 49d7a0a

Browse files
committed
test: remove unneeded yarnrc creation in E2E setup
1 parent 927a262 commit 49d7a0a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/legacy-cli/e2e/setup/001-npm-sandbox.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export default async function () {
1111
const yarnModulesPrefix = join(tempRoot, 'yarn-global');
1212
const npmRegistry: string = getGlobalVariable('package-registry');
1313
const npmrc = join(tempRoot, '.npmrc');
14-
const yarnrc = join(tempRoot, '.yarnrc');
1514

1615
// Change the npm+yarn userconfig to the sandboxed npmrc to override the default ~
1716
process.env.NPM_CONFIG_USERCONFIG = npmrc;
@@ -35,9 +34,8 @@ export default async function () {
3534
process.env['NPM_CONFIG_legacy_peer_deps'] = 'true';
3635
}
3736

38-
// Configure the registry and prefix used within the test sandbox via rc files
39-
await writeFile(npmrc, `registry=${npmRegistry}\nprefix=${npmModulesPrefix}`);
40-
await writeFile(yarnrc, `registry ${npmRegistry}\nprefix ${yarnModulesPrefix}`);
37+
// Configure the registry used within the test sandbox via rc files
38+
await writeFile(npmrc, `registry=${npmRegistry}\n`);
4139

4240
await mkdir(npmModulesPrefix);
4341
await mkdir(yarnModulesPrefix);

0 commit comments

Comments
 (0)