With extension functions it can be tricky. Always ...
# mockk
o
With extension functions it can be tricky. Always need to understand what calls are happening on byte code level.
Copy code
mockkStatic("kotlin.io.FilesKt__UtilsKt")

        val file = File("abc")
        every {
            file.resolve("def")
        } returns File("ghi")

        println(File("abc").resolve("def"))