Skip to content

2.5.1

Compare
Choose a tag to compare
@lupuuss lupuuss released this 12 Nov 19:40
· 174 commits to master since this release
2f0c9c2

Changelog:

✨ Improvements

  • #19 Preserve generic arguments for a mocked type so that MockMode.autofill and MockMode.autoUnit work better with generics, especially lambdas.
  • The Gradle plugin warns about potential Kotlin version incompatibilities whenever the major or minor version is higher than the version Mokkery was compiled against. Warning can be disabled by Gradle properties flag dev.mokkery.versionWarnings=false

🐛 Bug fixes

  • Fix MockMany identifier to remove unnecessary type parameter information.
  • Fix Intelij internal error when integrating with Mokkery frontend plugin.
    IntelliJ integration with K2 frontend plugins is currently enabled by default only for first-party plugins (e.g., kotlinx.serialization, Compose). Integration with third-party plugins is experimental and requires disabling the kotlin.k2.only.bundled.compiler.plugins.enabled flag in the IDE registry (Shift + Shift and search for Registry) .