test: update bun-pm.test.ts `pm ls` snapshots for #38952's header; name prune's HoistedTree::init flags
Merged
MA
3mo ago+29+29+01234567890123456789-8-8-0123456789
What does this PR do?
Two small fixes for things currently red on main for any PR that touches bun_install:
test/cli/install/bun-pm.test.ts— #39962 added threebun pm lsinline snapshots using the oldnode_modules (N)header, and #38952 (merged around the same time) changed that header tonode_modules (N installed). The two crossed, so those three snapshots fail onmain. Updated them to the current wording. Same for onebun-prune.test.ts--verbosesnapshot that predates #38952'schecked N installed packageswording.src/install/prune.rs— the mordantbare_bool_argslint flagsHoistedTree::init(before, true, false)(0 recorded in the baseline for that file), which fails therust-lints / mordantjob on PRs touching the crate (seen on #40011 and #40053, neither of which touchesprune.rs).initnow takes a small named options struct.
No behaviour change.
How did you verify your code works?
bun test test/cli/install/bun-pm.test.ts passes locally (was 3 failures on main); cargo clippy -p bun_install clean; bun-prune.test.ts unchanged.