how do I check if a test from the common source se...
# kotest
p
how do I check if a test from the common source set runs in a JS browser? the
Platform
enum has just `JS`: https://github.com/kotest/kotest/blob/4d73e92cd0d1fb1c7a651e9cc303c0eef0f7d0f0/kot[…]amework-engine/src/commonMain/kotlin/io/kotest/core/platform.kt
the exact problem: reading env vars doesn't work there, so I want to skip related tests
s
I think for 6.0 we'll expand the platform enum . That doesn't help you here though
p
Got it. I'm wondering if Kotlin gives us any API that Kotest could use. All I can think of are some hacks that can stop working any time, however e.g. checking if "window" object exists may be good enough