diff --git a/config.json b/config.json index b848284f9..18dfd74cd 100644 --- a/config.json +++ b/config.json @@ -1,7 +1,7 @@ { "definitions": { "npm": { - "default": "11.12.1+sha1.432da55a9f0ca53c982740fabe2b081a38019fb1", + "default": "11.14.1+sha1.4a6839650da0005f323fec6abd39d77ee24f842f", "fetchLatestFrom": { "type": "npm", "package": "npm" @@ -38,7 +38,7 @@ } }, "pnpm": { - "default": "10.33.0+sha1.46a0bef28aad690765997ab6da6d5475bdd4148e", + "default": "11.1.2+sha1.ed39d701687311ce9345771c62376f9fe7286694", "fetchLatestFrom": { "type": "npm", "package": "pnpm" diff --git a/tests/main.test.ts b/tests/main.test.ts index 41c211315..507db2e43 100644 --- a/tests/main.test.ts +++ b/tests/main.test.ts @@ -636,6 +636,8 @@ it(`should transparently use the preconfigured version when there is no local pr for (const name of SupportedPackageManagerSet) { it(`should use the pinned version when local projects don't list any spec (${name})`, async () => { + process.env.pnpm_config_pm_on_fail = `ignore`; + await xfs.mktempPromise(async cwd => { await xfs.writeJsonPromise(ppath.join(cwd, `package.json` as Filename), { // empty package.json file @@ -811,6 +813,7 @@ it(`should refuse to run a different package manager within a configured project // Disable strict checking to workaround the UsageError. process.env.COREPACK_ENABLE_STRICT = `0`; + process.env.pnpm_config_pm_on_fail = `ignore`; await expect(runCli(cwd, [`yarn`, `--version`])).resolves.toMatchObject({ stdout: `1.0.0\n`, @@ -832,6 +835,7 @@ it(`should always use fallback version when project spec env is disabled`, async packageManager: `yarn@1.0.0`, }); process.env.COREPACK_ENABLE_PROJECT_SPEC = `0`; + process.env.pnpm_config_pm_on_fail = `ignore`; await expect(runCli(cwd, [`yarn`, `--version`])).resolves.toMatchObject({ stdout: `${config.definitions.yarn.default.split(`+`, 1)[0]}\n`, diff --git a/tests/nocks.db b/tests/nocks.db index 2c5351b05..19056a0b9 100644 Binary files a/tests/nocks.db and b/tests/nocks.db differ