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, },