Skip to content

chore(deps): update dependency mockolate to v3#5801

Merged
thomhurst merged 1 commit intomainfrom
renovate/mockolate-3.x
Apr 30, 2026
Merged

chore(deps): update dependency mockolate to v3#5801
thomhurst merged 1 commit intomainfrom
renovate/mockolate-3.x

Conversation

@thomhurst
Copy link
Copy Markdown
Owner

This PR contains the following updates:

Package Type Update Change
Mockolate nuget major 2.4.03.0.0

Release Notes

aweXpect/Mockolate (Mockolate)

v3.0.0

What's Changed

Full Changelog: Testably/Mockolate@v2.4.0...v3.0.0


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate.

@thomhurst thomhurst added dependencies Pull requests that update a dependency file MAJOR renovate-bot labels Apr 30, 2026
@thomhurst thomhurst enabled auto-merge (squash) April 30, 2026 21:26
Copy link
Copy Markdown
Contributor

@claude claude Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dependency Update Review: Mockolate 2.4.0 → 3.0.0

This is a Renovate-generated major version bump. Here's my analysis:

Scope & Impact

Good news: Mockolate is only used in TUnit.Mocks.Benchmarks — not in any production, test infrastructure, or shipped packages. The blast radius of this upgrade is limited to benchmark comparisons.

Breaking Changes Worth Noting

The v3.0.0 release contains numerous breaking changes (marked with ! in the changelog), several of which directly touch APIs used in the benchmark code:

  1. feat!: update CreateMock overloads to accept typed constructor arguments — The benchmarks call ICalculatorService.CreateMock() (no args). Per the companion commit feat!: omit constructor parameters overloads for interfaces and types with only parameterless constructors, parameterless overloads are preserved for interfaces, so this should remain safe.

  2. refactor!: introduce ITypedParameter and ITypedMethodMatch interfaces — The benchmarks cast to Mockolate.Mock.IMockForICalculatorService and call into the Setup API. If the interface shape changed, the source-generated mock class for ICalculatorService will need to be regenerated — which happens automatically at build time via the source generator.

  3. refactor!: use Callbacks<T> class / perf!: reduce allocations in setup/interaction/verify — Internal-only, shouldn't affect benchmark call sites, but worth confirming the setup chains in InvocationBenchmarks.cs still compile.

No Issues Found

The change itself is minimal (one line in Directory.Packages.props), and the dependency is isolated to a benchmarks project. All the v3.0.0 breaking changes align with the API surface as used by TUnit — primarily source-generated mocks of interfaces with parameterless constructors, and standard setup/invocation chains. The upgrade should compile cleanly; the source generator will regenerate the mock wrapper at build time to match the new interfaces.

The performance-focused changes in v3.0.0 (avoiding boxing, removing closures, typed storage) are actually a net positive for a benchmarks project — the comparison numbers will be more representative of Mockolate's real-world performance.

Verdict: Safe to merge. The auto-merge already enabled on this PR is appropriate.

@codacy-production
Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity

Metric Results
Complexity 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@thomhurst thomhurst merged commit 49f2645 into main Apr 30, 2026
13 of 14 checks passed
@thomhurst thomhurst deleted the renovate/mockolate-3.x branch April 30, 2026 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file MAJOR renovate-bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants