Skip to content

Add regression test for mixed workspace and semver dependency references in bumping#1284

Merged
ecraig12345 merged 1 commit into
mainfrom
copilot/add-bump-test-case
Jun 15, 2026
Merged

Add regression test for mixed workspace and semver dependency references in bumping#1284
ecraig12345 merged 1 commit into
mainfrom
copilot/add-bump-test-case

Conversation

Copilot AI commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

This adds coverage for the discussion #940 scenario: the same local dependency is referenced via workspace: in one dependency type and a numeric semver range in another.
The new test ensures bumping updates only the numeric range while preserving the workspace: reference.

  • What was added

    • New bumpInMemory regression case in packages/beachball/src/__tests__/bump/bumpInMemory.test.ts for:
      • devDependencies.local-dep = workspace:^
      • peerDependencies.local-dep = ^3.6.1
  • Behavior now asserted

    • local-dep bump (3.6.1 -> 3.7.0) propagates to dependent package version bump.
    • peerDependencies.local-dep updates to ^3.7.0.
    • devDependencies.local-dep remains workspace:^ (not rewritten to numeric).
'package-with-deps': {
  devDependencies: { 'local-dep': 'workspace:^' },
  peerDependencies: { 'local-dep': '^3.6.1' },
}

@ecraig12345 ecraig12345 merged commit 1f29e80 into main Jun 15, 2026
11 checks passed
@ecraig12345 ecraig12345 deleted the copilot/add-bump-test-case branch June 15, 2026 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants