assertJ allows you to check for element-wise list equality while ignoring user specified fields like so
assertThat(listOfObjects)
.usingElementComparatorIgnoringFields("field1", "field2", ...)
.containsExactly(object1, object2, ...)
I have not been able to find any equivalent function in kotest. Is there an equivalent?
There is no such assertion at collection level, though you can perform similar assertion at individual object using shouldBeEqualToIgnoringFields
matcher.