From eaebfd53c7ba02cbe3f4a64403340fe5accac404 Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Mon, 18 Mar 2024 00:12:15 +0100 Subject: [PATCH] test: fix --- exec/plugin-commands-rebuild/test/index.ts | 4 ++-- fetching/git-fetcher/test/index.ts | 2 +- pkg-manager/core/test/install/lifecycleScripts.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/exec/plugin-commands-rebuild/test/index.ts b/exec/plugin-commands-rebuild/test/index.ts index ab6a00893f..4e6b3e2465 100644 --- a/exec/plugin-commands-rebuild/test/index.ts +++ b/exec/plugin-commands-rebuild/test/index.ts @@ -28,7 +28,7 @@ test('rebuilds dependencies', async () => { 'add', '--save-dev', '@pnpm.e2e/pre-and-postinstall-scripts-example@1.0.0', - 'pnpm/test-git-fetch#6ebf1e03de0ada9e653d1f8ff82ad905ab761ad9', + 'pnpm/test-git-fetch#8b333f12d5357f4f25a654c305c826294cb073bf', `--registry=${REGISTRY}`, `--store-dir=${storeDir}`, '--ignore-scripts', @@ -38,7 +38,7 @@ test('rebuilds dependencies', async () => { let modules = project.readModulesManifest() expect(modules!.pendingBuilds).toStrictEqual([ '@pnpm.e2e/pre-and-postinstall-scripts-example@1.0.0', - 'test-git-fetch@https://codeload.github.com/pnpm/test-git-fetch/tar.gz/6ebf1e03de0ada9e653d1f8ff82ad905ab761ad9', + 'test-git-fetch@https://codeload.github.com/pnpm/test-git-fetch/tar.gz/8b333f12d5357f4f25a654c305c826294cb073bf', ]) const modulesManifest = project.readModulesManifest() diff --git a/fetching/git-fetcher/test/index.ts b/fetching/git-fetcher/test/index.ts index bb093d57eb..a93b506a05 100644 --- a/fetching/git-fetcher/test/index.ts +++ b/fetching/git-fetcher/test/index.ts @@ -113,7 +113,7 @@ test('fetch a package from Git that has a prepare script', async () => { const { filesIndex } = await fetch( createCafsStore(cafsDir), { - commit: '6ebf1e03de0ada9e653d1f8ff82ad905ab761ad9', + commit: '8b333f12d5357f4f25a654c305c826294cb073bf', repo: 'https://github.com/pnpm/test-git-fetch.git', type: 'git', }, diff --git a/pkg-manager/core/test/install/lifecycleScripts.ts b/pkg-manager/core/test/install/lifecycleScripts.ts index 7d5b4b2d02..9b96a961eb 100644 --- a/pkg-manager/core/test/install/lifecycleScripts.ts +++ b/pkg-manager/core/test/install/lifecycleScripts.ts @@ -276,7 +276,7 @@ test('run lifecycle scripts of dependent packages after running scripts of their test('run prepare script for git-hosted dependencies', async () => { const project = prepareEmpty() - await addDependenciesToPackage({}, ['pnpm/test-git-fetch#6ebf1e03de0ada9e653d1f8ff82ad905ab761ad9'], testDefaults({ fastUnpack: false })) + await addDependenciesToPackage({}, ['pnpm/test-git-fetch#8b333f12d5357f4f25a654c305c826294cb073bf'], testDefaults({ fastUnpack: false })) const scripts = project.requireModule('test-git-fetch/output.json') expect(scripts).toStrictEqual([