How to mock data class?
Short answer: you don’t.
Instead…
4 Ways to Leverage Kotest Specs for More Robust Testing
When it comes to testing in Kotlin, we often default to jUnit as the go-to framework.
However, there’s an alternative that offers a variety of powerful features – Kotest.
Kotest provides a variety of spec styles, each with its unique capabilities, that make writing tests a breeze.