Normally when I test Realm I test with androidTest...
# spek
v
Normally when I test Realm I test with androidTest, by create config like the code below
Copy code
val context = InstrumentationRegistry.getTargetContext()
        val realmConfiguration = RealmConfiguration.Builder(context)
                .name("TestRealm")
                .inMemory()
                .build()
        realm = Realm.getInstance(realmConfiguration)
but now I’m using
Spek
I'm wondering how can I achieve that because my tests are now in JUnit test and I cannot get the context to build Realm configuration.