mirror of
https://github.com/pnpm/pnpm.git
synced 2026-07-25 15:07:06 -04:00
Per CodeRabbit review on pnpm/pnpm#11662 — `.resolves.not.toThrow()` doesn't behave as intended here: after `.resolves` the matcher operates on the resolved value (an `InstallationResult`), not on a function, so `.toThrow()` would never validate the rejection path. Just awaiting the call makes jest fail naturally on rejection, which is what the regression test actually wants.