Is there a way, in `commonTest` , to detect if the...
# testballoon
c
Is there a way, in
commonTest
, to detect if the test is currently running on browser environments? (
js { browser() }
or
wasmJs { browser() }
) I see
testPlatform.type
but it doesn't differentiate between JS' Node or Browser environments, and
TestPlatformJsHosted.runtime
doesn't seem available in
commonTest
.
o
You could expect/actual it with help from the existing
TestPlatformJsHosted.runtime
, but it's not available out of the box.