File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
firebase-firestore/src/jsTest/kotlin/dev/gitlive/firebase/firestore Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 3939 run : npm install -g firebase-tools
4040 - name : Start Firebase emulator
4141 run : " firebase emulators:start --config=./test/firebase.json &"
42- - name : Assemble
43- run : ./gradlew assemble
4442 - name : Run JS Tests
4543 run : ./gradlew cleanTest jsTest
4644 - name : Upload JS test artifact
Original file line number Diff line number Diff line change @@ -6,12 +6,13 @@ package dev.gitlive.firebase.firestore
66
77import kotlinx.coroutines.CoroutineScope
88import kotlinx.coroutines.test.runTest
9+ import kotlin.time.Duration.Companion.minutes
910
1011actual val emulatorHost: String = " localhost"
1112
1213actual val context: Any = Unit
1314
14- actual fun runTest (test : suspend CoroutineScope .() -> Unit ) = runTest { test() }
15+ actual fun runTest (test : suspend CoroutineScope .() -> Unit ) = runTest(timeout = 5 .minutes) { test() }
1516
1617@Target(AnnotationTarget .CLASS , AnnotationTarget .FUNCTION )
1718actual annotation class IgnoreForAndroidUnitTest
You can’t perform that action at this time.
0 commit comments