From b14495355fd5281c19814f288a78763387f3a613 Mon Sep 17 00:00:00 2001 From: Alan Agius <17563226+alan-agius4@users.noreply.github.com> Date: Thu, 3 Sep 2026 16:21:13 +0000 Subject: [PATCH] test: allow git dependencies in E2E npm sandbox configuration This fixes the snapshots builds error --- tests/e2e/setup/001-npm-sandbox.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/e2e/setup/001-npm-sandbox.ts b/tests/e2e/setup/001-npm-sandbox.ts index 9989beb80b36..aa026a991cb1 100644 --- a/tests/e2e/setup/001-npm-sandbox.ts +++ b/tests/e2e/setup/001-npm-sandbox.ts @@ -35,8 +35,9 @@ export default async function () { process.env['NPM_CONFIG_legacy_peer_deps'] = 'true'; } - // Allow github tarballs consumption. + // Allow github tarballs and git dependencies consumption. process.env['NPM_CONFIG_allow_remote'] = 'all'; + process.env['NPM_CONFIG_allow_git'] = 'true'; // Configure the registry and prefix used within the test sandbox via rc files await writeFile(npmrc, `registry=${npmRegistry}\nprefix=${npmModulesPrefix}`);