mirror of
https://github.com/pnpm/pnpm.git
synced 2026-06-27 09:25:24 -04:00
pnpr no longer accepts HTTP Basic (`_auth`) on requests, so test helpers that authenticated with Basic credentials started returning 401 once CI ran against a bearer-only pnpr build. Switch the registry-mock `addDistTag` helper and the publish/deprecate/dist-tag/unpublish suites to the bearer token that the with-registry globalSetup already mints (`REGISTRY_MOCK_TOKEN`), exposed through a new `getRegistryMockToken()` helper. The two install/auth.ts tests that cover pnpm's own Basic `_auth` client support now run against a small local registry proxy that enforces Basic auth and forwards to pnpr with a bearer token, so that coverage is kept.