From f896dd9cbf7d63a7b46fc4ddde9c20c26e875e87 Mon Sep 17 00:00:00 2001 From: Stefan Butz Date: Thu, 21 Dec 2023 11:26:35 +0700 Subject: [PATCH] Fix tests --- firestore/test/game.test.ts | 2 +- functions/src/firebase.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/firestore/test/game.test.ts b/firestore/test/game.test.ts index 7751f44..9bf46a1 100644 --- a/firestore/test/game.test.ts +++ b/firestore/test/game.test.ts @@ -3,7 +3,7 @@ import { assertFails, assertSucceeds, initializeTestEnvironment, RulesTestEnvironment, } from '@firebase/rules-unit-testing'; import { - setLogLevel, setDoc, doc, getDoc, deleteDoc, updateDoc, + setLogLevel, setDoc, doc, getDoc, updateDoc, } from 'firebase/firestore'; let testEnv: RulesTestEnvironment; diff --git a/functions/src/firebase.ts b/functions/src/firebase.ts index da45ebd..cafc9db 100644 --- a/functions/src/firebase.ts +++ b/functions/src/firebase.ts @@ -14,3 +14,4 @@ const config = isDevelopment() ? { const app = initializeApp(config); export const auth = getAuth(app); export const db = getFirestore(app); +db.settings({ignoreUndefinedProperties: true});