Skip to content

Commit e6428ea

Browse files
committed
test: configure network-timeout and prefer-offline for yarn in e2e tests
1 parent 26a59de commit e6428ea

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ export default async function () {
4141

4242
// Configure the registry and prefix used within the test sandbox via rc files
4343
await writeFile(npmrc, `registry=${npmRegistry}\nprefix=${npmModulesPrefix}`);
44-
await writeFile(yarnrc, `registry ${npmRegistry}\nprefix ${yarnModulesPrefix}`);
44+
await writeFile(
45+
yarnrc,
46+
`registry ${npmRegistry}\nprefix ${yarnModulesPrefix}\nnetwork-timeout 10000\nprefer-offline true\n`,
47+
);
4548

4649
await mkdir(npmModulesPrefix);
4750
await mkdir(yarnModulesPrefix);

0 commit comments

Comments
 (0)