chore: clenaup unit tests

This commit is contained in:
Mário Nunes
2024-06-15 14:25:07 +01:00
parent a5490e576c
commit a1225bca54
37 changed files with 431 additions and 372 deletions

View File

@@ -43,9 +43,9 @@ describe('SEO', () => {
beforeAll(async () => {
db = admin.firestore()
// Test will only create entries for accepted howtos and research
for (const doc of testDocs) {
await db.collection(doc.endpoint).add(doc)
}
await Promise.all(
testDocs.map((doc) => db.collection(doc.endpoint).add(doc)),
)
})
afterAll(firebaseTest.cleanup)