Skip to content

chore(deps): bump dev.mokkery from 3.4.2 to 3.5.0 - #243

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/gradle/dev.mokkery-3.5.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/gradle/dev.mokkery-3.5.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 1, 2026

Copy link
Copy Markdown
Contributor

Bumps dev.mokkery from 3.4.2 to 3.5.0.

Release notes

Sourced from dev.mokkery's releases.

3.5.0

Changelog

🚀 Features

  • #90 Added mockFactoryOf and spyFactoryOf, which create mocks from a type known at runtime, for a set of types known at compile time.
    val factory = mockFactoryOf(Foo::class, Bar::class)
    fun createMock(type: KType) = factory.create(type)
  • Call interceptors can now be registered per scope - globally, per MokkerySuiteScope, or per instance via the new callHooks property.
    val foo = mock<Foo> { callHooks.beforeAnswering.register(MokkeryCallLogger()) }

✨ Improvements

  • New compile-time errors: final members inherited from indirect supertypes, matchers used in non-member functions, matchers in array literals that Mokkery cannot lift, and mocking a final class through the every(mock::foo) syntax.
  • New actionable runtime errors: a default value that cannot be matched because it is non-deterministic, a default value computed from another member of the mocked type, and an out-of-bounds returnsArgAt index.
  • Reduced generated output size and improved mock call performance.

🐛 Bug fixes

  • #144 Fix incompatibility with Kotlin 2.4.20.
  • Fix AbstractMethodError after incremental compilation when the mocked type changed (Kotlin/JVM only).
  • Fix false positive errors when a scope function with a receiver (e.g. run) is used inside an every/verify block or a custom matcher.
  • #145 Fix false positive when a verify block contains conditional mock calls - the check that caused it has been removed.
  • Fix false positive matches composite-matcher error caused by a stale FIR cache.
  • Fix compiler crash on spy of an anonymous object - now reported as a compile-time error.
  • Fix a custom matcher silently failing to match when its body wrapped a value in run.
  • Fix receiver expression being executed twice in every/verify blocks in certain scenarios.
  • Fix slot capture treating a captured null as absent.
  • Fix capture propagation through a spread argument matcher.
  • Fix MokkerySuiteScope not being handled properly with secondary constructors and objects.
  • Fix mocking a shared property with mockMany when one type declares it as a val and the other as a var.
  • Fix stubbing of constructor parameters that have default values.
  • Fix empty repeat block failing with a division by zero.
  • Fix type-argument shortening replacing the wrong type when one type name is a substring of another.
  • Fix missing # No calls to this mock! marker when other mocks in the suite were called.
  • Fix inconsistent verifyNoMoreCalls error message.

♻️ Deprecations

  • MokkeryCallInterceptor.beforeAnswering is deprecated in favor of MokkeryScope.global.callHooks.beforeAnswering.
  • Answer.description() is deprecated in favor of implementing Renderable.render().
Commits
  • 6a59a40 Merge pull request #147 from lupuuss/release-3.5.0
  • 4746e27 Fix MokkeryCollection snapshot toString
  • 63954ec Bump Kotlin to 2.4.20
  • 6f29a24 Add presets for factories
  • c9feb36 Change interceptedTypesSpec to MType
  • fdaf025 Rename configurer property to mokkeryConfigurer
  • c3eb233 Add MockConfigurerTest.testNestedConfigurersInvocation
  • cd05a18 Fix parameter names in MokkeryCallScopeApi.kt
  • 7be2e2f Update compat table in Setup.mdx
  • 0a74b49 Fix Limitations.mdx
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [dev.mokkery](https://github.com/lupuuss/Mokkery) from 3.4.2 to 3.5.0.
- [Release notes](https://github.com/lupuuss/Mokkery/releases)
- [Commits](lupuuss/Mokkery@v3.4.2...v3.5.0)

---
updated-dependencies:
- dependency-name: dev.mokkery
  dependency-version: 3.5.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file java Pull requests that update java code labels Oct 1, 2026

This branch has not been deployed

No deployments
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 java Pull requests that update java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants