test: fix

This commit is contained in:
Zoltan Kochan
2024-03-18 00:12:15 +01:00
parent 8ea8ba083b
commit eaebfd53c7
3 changed files with 4 additions and 4 deletions

View File

@@ -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()

View File

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

View File

@@ -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([