mirror of
https://github.com/pnpm/pnpm.git
synced 2026-05-18 05:42:27 -04:00
test: fix
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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',
|
||||
},
|
||||
|
||||
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user