test: fix test due to a package removed from the npm registry

This commit is contained in:
Zoltan Kochan
2025-07-23 11:46:56 +02:00
parent 14395be3cd
commit cefe4bf174
2 changed files with 7 additions and 0 deletions

View File

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

View File

@@ -11,6 +11,7 @@ export function testDefaults<T> (
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<T> (
const { storeController, storeDir, cacheDir } = createTempStore({
...opts,
clientOptions: {
registries: opts?.registries,
...resolveOpts,
...fetchOpts,
},