kotlin testing error cannot create parent directories
When I run test, I am getting the error when I try to test if Datastore.edit had been called:
java.io.IOException: Unable to create parent directories of /data/user/0/com.example.app.test/files/datastore/user.preferences_pb
It is a small class that handles Datastore, which is the following:
Pref.kt
class Pref {
companion object {
@Volatile
private var INSTANCE: Pref? = null
private var dataStore: DataStore? = null
fun getInstance(context: Context):...