From cefe4bf174df5a2ffce7e594f1ce674979209864 Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Wed, 23 Jul 2025 11:46:56 +0200 Subject: [PATCH] test: fix test due to a package removed from the npm registry --- pkg-manager/core/test/install/autoInstallPeers.ts | 5 +++++ pkg-manager/core/test/utils/testDefaults.ts | 2 ++ 2 files changed, 7 insertions(+) diff --git a/pkg-manager/core/test/install/autoInstallPeers.ts b/pkg-manager/core/test/install/autoInstallPeers.ts index 50fc20d932..f25ce90afb 100644 --- a/pkg-manager/core/test/install/autoInstallPeers.ts +++ b/pkg-manager/core/test/install/autoInstallPeers.ts @@ -428,6 +428,11 @@ test('installation on a workspace with many complex circular dependencies does n ignoreScripts: true, lockfileOnly: true, strictPeerDependencies: false, + registries: { + // A temporary workaround due to stylus removal from the npm registry. + // Related issue: https://github.com/stylus/stylus/issues/2938 + default: 'https://registry.npmmirror.com', + }, allProjects: [ { buildIndex: 0, diff --git a/pkg-manager/core/test/utils/testDefaults.ts b/pkg-manager/core/test/utils/testDefaults.ts index 990a7e8a89..698d374b6c 100644 --- a/pkg-manager/core/test/utils/testDefaults.ts +++ b/pkg-manager/core/test/utils/testDefaults.ts @@ -11,6 +11,7 @@ export function testDefaults ( fastUnpack?: boolean storeDir?: string prefix?: string + registries?: Registries }, resolveOpts?: any, // eslint-disable-line fetchOpts?: any, // eslint-disable-line @@ -26,6 +27,7 @@ export function testDefaults ( const { storeController, storeDir, cacheDir } = createTempStore({ ...opts, clientOptions: { + registries: opts?.registries, ...resolveOpts, ...fetchOpts, },