When I run my tests, Ktor throws an exception: "io...
# ktor
l
When I run my tests, Ktor throws an exception: "io.ktor.features.UnsupportedMediaTypeException: Content type / is not supported". I have installed Serialization, and it handles application/json, but not all of my endpoints take in a json. Is there something I'm missing, or is this a Ktor bug?
Everything works fine when running normally. It's the test engine where this occurs.
a
Please post a code snippet for your test to reproduce your problem.