kotest-assertions / io.kotest.assertions / cleanStackTrace

cleanStackTrace

fun <T : Throwable> cleanStackTrace(throwable: T): T

Removes io.kotest stack elements from the given throwable if the platform supports stack traces.