John Gainfort
02/25/2020, 11:10 PMinterface Foo { fun bar(val: String): ByteArray }
then in my commonTest I am trying to mock Foo
val mockedFoo = mockk<Foo> { every { bar("test") } returns ByteArray(1) }
my build.gradle.kts has
val commonTest by getting {
dependencies {
implementation(kotlin("test-common"))
implementation(kotlin("test-annotations-common"))
implementation("io.mockk:mockk:1.9.3")
implementation("io.mockk:mockk-common:1.9.3")
}
}
but when I go to run a test I get this error that I am having a hard time figuring out.