package com.applemand.zmanim

import android.app.Application
import android.content.Context
import androidx.test.runner.AndroidJUnitRunner
import dagger.hilt.android.testing.HiltTestApplication

/**
 * Forwards instrumentation tests to HiltTestApplication rather than the real
 * LuachApp so Hilt's DI can be swapped.
 */
class LuachTestRunner : AndroidJUnitRunner() {
    override fun newApplication(cl: ClassLoader?, className: String?, context: Context?): Application =
        super.newApplication(cl, HiltTestApplication::class.java.name, context)
}
