Skip to content

refactor(rush-resolver-cache-plugin): extract repeated specifier strings into variables in tests#5802

Draft
Copilot wants to merge 3 commits into
mainfrom
copilot/fix-file-protocol-error
Draft

refactor(rush-resolver-cache-plugin): extract repeated specifier strings into variables in tests#5802
Copilot wants to merge 3 commits into
mainfrom
copilot/fix-file-protocol-error

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 11, 2026

Minor test hygiene: inline specifier string literals that appear more than once (within a test or across sibling tests) are extracted to a named const specifier variable, matching the pattern already used in the newer edge-case tests.

Tests updated in resolveDependencyKey describe block:

Test Extracted value
resolves link: specifier for project/non-project context 'link:../bar'
resolves file: specifier 'file:../../../rigs/local-node-rig'
resolves specifier found in packageKeys (v6) '/autoprefixer@9.8.8' (was duplicated in Set ctor and function call)
resolves specifier found in packageKeys (v9) 'autoprefixer@9.8.8' (same)
builds dependency key for plain version specifiers (v8/v9) '9.8.8'

Copilot AI changed the title Fix file: dependency context resolution mismatch in rush-resolver-cache-plugin (pnpm v9/v10) refactor(rush-resolver-cache-plugin): extract repeated specifier strings into variables in tests May 11, 2026
Copilot AI requested a review from bmiddha May 11, 2026 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Needs triage

Development

Successfully merging this pull request may close these issues.

2 participants