You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running into the same issue, didn't find a way to make this work either.
FWIW, one can use the get method on the EntitySpec to obtain the result and do manual assertions as a workaround.
Fixed on Kotlin side, see this blog post for more details. This is available via a flag in Kotlin 1.5.30 and by default in the upcoming Kotlin 1.6 release.
Similar to the type inference issues that were present with the
WebTestClient.BodySpec
, there are now also issues here with theGraphQlTester.EntitySpec
.So for example, the following code will not compile;
It will instead result it the following error:
Changing
String
toNothing
satisfies the compiler, but errors out at runtime with aKotlinNothingValueException
.The expected/preferred kotlin api would be something like:
The text was updated successfully, but these errors were encountered: