mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-18 20:36:04 +00:00
fix(ui): keep the ring veil count per test (#1739)
* ci: run unit tests in four forks * fix(ui): keep the ring veil count per test so tests do not share snapshot state * ci: keep two unit test forks, four were slower
This commit is contained in:
1 parent
92787dd0f0
commit
1e92d10fa5
2 files changed
+7
-1
No files matched your search
@@ -8,6 +8,7 @@ import org.robolectric.RuntimeEnvironment
|
||||
import org.robolectric.Shadows.shadowOf
|
||||
|
||||
fun createRobolectricComposeRule() = createComposeRule().also {
|
||||
RingVeil.reset()
|
||||
val context = RuntimeEnvironment.getApplication()
|
||||
shadowOf(context.packageManager).addActivityIfNotPresent(
|
||||
ComponentName(context, ComponentActivity::class.java),
|
||||
|
||||
Reference in new issue
Block a user