Skip to content

test(pm): validate package-lock JSON in arborist e2e - #3281

Open
limiaokun wants to merge 4 commits into
utooland:nextfrom
limiaokun:test/pm-arborist-validate-lockfile-json
Open

test(pm): validate package-lock JSON in arborist e2e#3281
limiaokun wants to merge 4 commits into
utooland:nextfrom
limiaokun:test/pm-arborist-validate-lockfile-json

Conversation

@limiaokun

@limiaokun limiaokun commented Aug 5, 2026

Copy link
Copy Markdown

Summary

Adds a lightweight package-lock.json JSON parse check to the Arborist E2E runner after successful installs. Invalid lockfiles fail the fixture with a clear fixture name; missing lockfiles are skipped.

Closes #3171

Test Plan

  • ./e2e/pm-arborist.sh peer still passes for fixtures that produce valid lockfiles
  • Manually corrupt a fixture package-lock.json after install and confirm the runner reports FAIL <fixture> (package-lock.json is not valid JSON)
  • Zero-dep fixtures without a lockfile still pass

After successful install, parse package-lock.json with Node when present so invalid lockfiles fail the fixture with a clear name. Closes utooland#3171.

Co-authored-by: Cursor <cursoragent@cursor.com>
@limiaokun

Copy link
Copy Markdown
Author

#3172

@elrrrrrrr
elrrrrrrr enabled auto-merge (squash) August 9, 2026 16:49
@limiaokun

Copy link
Copy Markdown
Author

@elrrrrrrr
麻烦帮忙审批运行下这个PR的工作流。
分支已经同步到最新,没有合并冲突,已开启自动合并,CI通过后就会自动合入,谢谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(pm): validate package-lock JSON in arborist e2e / 在 arborist e2e 中校验 package-lock JSON

2 participants