Find assertEquals(...) calls — Kotest migration candidate

Proprietary

Kotest's idiomatic form for assertEquals(expected, actual) is actual shouldBe expected — the receiver is the subject under test, which composes naturally with chained matchers (actual shouldBe expected; actual.shouldBeOfType<T>()). Each match is a candidate when migrating to Kotest.

org.openrewrite.kotlin.testing.FindAssertEqualsCandidateForKotest$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.testing.FindAssertEqualsCandidateForKotest$KtRecipe'

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.