So I've included, ``` testImplementation(kotli...
# multiplatform
d
So I've included,
Copy code
testImplementation(kotlin("test-common"))
    testImplementation(kotlin("test-annotations-common"))
    testImplementation(kotlin("test"))
    testImplementation(kotlin("test-junit"))
(which works for multi-platform) in my Kotlin/JVM project but I can't resolve the
kotlin.test.Test
annotation. Is this not supported?
j
it's typealias'd to
org.junit.Test
on the JVM
d
org.junit.Test
resolves fine but it seems I can't use the alias. (I like my code to be back-end agnostic when I can help it). I'll give this up for now.
j
it's not just a typealias, it's an
expect typealias
so there is no
kotlin.test.Test
in the JVM artifact to use
d
Ahhhh! That sorta makes sense now.
i
There's no such thing as
expect typealias
, it could be either
expect class/interface/whatever
or
actual typealias
j
er, yeah. that's what i meant. i had typed out
expect annotation ..
and
actual typealias ...
and then decided it was too long and deleted a bunch of text and combined the wrong things
i
@Dominaezzz You shouldn't mix common and jvm dependencies in a single target dependencies block, perhaps it causes ambiguity between expect/actual
kotlin.test.Test
that is reported as unresolved reference.
d
Hmm, I'll try that.