Skip to content

Commit

Permalink
Remove assemble to speed up CI for js tests & make runTest > 10sec
Browse files Browse the repository at this point in the history
  • Loading branch information
Daeda88 committed Sep 26, 2023
1 parent 4097460 commit ca18a49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ jobs:
run: npm install -g firebase-tools
- name: Start Firebase emulator
run: "firebase emulators:start --config=./test/firebase.json &"
- name: Assemble
run: ./gradlew assemble
- name: Run JS Tests
run: ./gradlew cleanTest jsTest
- name: Upload JS test artifact
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ package dev.gitlive.firebase.firestore

import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.test.runTest
import kotlin.time.Duration.Companion.minutes

actual val emulatorHost: String = "localhost"

actual val context: Any = Unit

actual fun runTest(test: suspend CoroutineScope.() -> Unit) = runTest { test() }
actual fun runTest(test: suspend CoroutineScope.() -> Unit) = runTest(timeout = 5.minutes) { test() }

@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
actual annotation class IgnoreForAndroidUnitTest

0 comments on commit ca18a49

Please sign in to comment.