Skip to content

Commit 73a0b64

Browse files
authored
Merge pull request #133 from HassanBahati/ft-fix-tests
fix: tests
2 parents e269caa + ce3d81c commit 73a0b64

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

.github/workflows/tests.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches:
66
- next
77
pull_request:
8+
branches:
9+
- next
810

911
jobs:
1012
test:
@@ -32,7 +34,11 @@ jobs:
3234
run: pnpm install
3335

3436
- name: Start Firebase Emulator Suite
35-
uses: firebase-emulator-action@v1
37+
uses: invertase/[email protected]
38+
39+
- name: Verify Running Emulators
40+
run: |
41+
curl --silent http://localhost:4400/emulators | jq 'keys[]'
3642
3743
# Determine which packages have changed
3844
- name: Determine changed packages

packages/react/src/firestore/useClearIndexedDbPersistenceMutation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ import {
55
type FirestoreError,
66
} from "firebase/firestore";
77

8-
type FirestoreUseMutationOptions<TData = unknown, TError = Error> = Omit<
8+
type UseFirestoreMutationOptions<TData = unknown, TError = Error> = Omit<
99
UseMutationOptions<TData, TError, void>,
1010
"mutationFn"
1111
>;
1212

1313
export function useClearIndexedDbPersistenceMutation(
1414
firestore: Firestore,
15-
options?: FirestoreUseMutationOptions<void, FirestoreError>
15+
options?: UseFirestoreMutationOptions<void, FirestoreError>
1616
) {
1717
return useMutation<void, FirestoreError>({
1818
...options,

vitest.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import path from "path";
33

44
export default defineConfig({
55
test: {
6+
fileParallelism: false,
67
coverage: {
78
provider: "istanbul",
89
},

0 commit comments

Comments
 (0)