diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index af155fa6..449d55f8 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -5,6 +5,8 @@ on: branches: - next pull_request: + branches: + - next jobs: test: @@ -32,7 +34,11 @@ jobs: run: pnpm install - name: Start Firebase Emulator Suite - uses: firebase-emulator-action@v1 + uses: invertase/firebase-emulator-action@v1.0.1 + + - name: Verify Running Emulators + run: | + curl --silent http://localhost:4400/emulators | jq 'keys[]' # Determine which packages have changed - name: Determine changed packages diff --git a/.gitignore b/.gitignore index 0b50e408..2f755392 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,6 @@ dist functions/lib/**/*.js functions/lib/**/*.js.map + +# Firebase cache +.firebase/ \ No newline at end of file diff --git a/packages/react/src/firestore/useClearIndexedDbPersistenceMutation.ts b/packages/react/src/firestore/useClearIndexedDbPersistenceMutation.ts index 91b7e3eb..c104abbc 100644 --- a/packages/react/src/firestore/useClearIndexedDbPersistenceMutation.ts +++ b/packages/react/src/firestore/useClearIndexedDbPersistenceMutation.ts @@ -5,14 +5,14 @@ import { type FirestoreError, } from "firebase/firestore"; -type FirestoreUseMutationOptions = Omit< +type UseFirestoreMutationOptions = Omit< UseMutationOptions, "mutationFn" >; export function useClearIndexedDbPersistenceMutation( firestore: Firestore, - options?: FirestoreUseMutationOptions + options?: UseFirestoreMutationOptions ) { return useMutation({ ...options, diff --git a/vitest.config.ts b/vitest.config.ts index 979ab50d..575c4776 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -3,6 +3,7 @@ import path from "path"; export default defineConfig({ test: { + fileParallelism: false, coverage: { provider: "istanbul", },