https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36682
--- Comment #8 from Owen Leonard <[email protected]> --- Created attachment 202504 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202504&action=edit Bug 36682: Adapt lockfile test for pnpm The existing test uses `yarn check` to validate yarn.lock and the installed node_modules tree. It therefore contains special handling for ktd's shared dependency directory and Yarn cache. pnpm provides a lockfile-only frozen installation mode. This validates that package.json and pnpm-lock.yaml agree without linking dependencies, running build scripts, or modifying ktd's shared node_modules tree. Rename the test for pnpm and replace the Yarn- and ktd-specific logic with `pnpm install --lockfile-only --frozen-lockfile`. Test plan: 1. Start ktd before applying the patches: ktd up -d 2. Install pnpm in the running container: ktd --root --shell --run \ 'npm install --global [email protected]' 3. Apply only this patch. 4. Run: prove xt/verify-pnpm-lock.t 5. Confirm the test fails because pnpm-lock.yaml does not exist yet. 6. Apply the following pnpm migration patch. 7. Generate the pnpm lockfile: pnpm import pnpm install --lockfile-only 8. Run the test again. 9. Confirm it passes. Signed-off-by: Owen Leonard <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected] website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
