Open ygnessin opened 1 year ago
I've tried to replicate the bug with this test but the test runs fine. What is the type of the parameter ? Can you create a test demonstrating the issue ?
Thanks for looking into this @SalomonBrys
In my case, the type of the parameter was a Data Class that looked like this:
@Serializable
public data class MyDataClass(
val uuid: String,
val flag: Boolean,
)
Strangely enough, in the same test there are other verifications on different data classes that do work with isAny()
. So maybe there is something specific about that data class's structure or parameters that causes the problem.
I will try to create an isolated test that demonstrates this issue. Thanks!
EDIT: I tried my best but my example test passes. There must be something very specific about my other test that fails when I switch to isAny()
. I will update you if I discover anything more
The following test passes both on JVM and iOS targets:
But when targeting JS, it crashes with this exception:
If I replace
isAny()
with a real argument, then the test passes on all targets. But I'd like to be able to useisAny()
without my JS tests crashing.Thank you!