From 690fc798a516fedaaee8b458619e0ed6f4bdf6d2 Mon Sep 17 00:00:00 2001 From: Tianyi Cui <53024+tianyicui@users.noreply.github.com> Date: Sun, 9 Aug 2026 01:14:37 +0800 Subject: [PATCH] test(repository-plugin): isolate simulated npm release --- apps/cli/tests/github-repository-plugin.built.e2e.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/cli/tests/github-repository-plugin.built.e2e.ts b/apps/cli/tests/github-repository-plugin.built.e2e.ts index e1386e2bfe..139dc8208f 100644 --- a/apps/cli/tests/github-repository-plugin.built.e2e.ts +++ b/apps/cli/tests/github-repository-plugin.built.e2e.ts @@ -182,6 +182,11 @@ describe.skipIf(!enabled)('dsh run GitHub repository Plugin installation', () => DEEPSEEK_API_KEY: apiKey, DEEPSEEK_BASE_URL: server.baseURL, NPM_CONFIG_USERCONFIG: npmrc, + // A warm runner cache could satisfy the exact tarball without + // contacting this test's registry, which would stop proving the + // unpublished package was installed through the simulated release. + PNPM_CONFIG_CACHE_DIR: join(home, 'pnpm-cache'), + PNPM_CONFIG_STORE_DIR: join(home, 'pnpm-store'), PATH: process.env.PATH === undefined ? hostBin : `${hostBin}${delimiter}${process.env.PATH}`, }, })