Skip to content

Instantly share code, notes, and snippets.

@danahartweg
Created July 18, 2021 14:28
Show Gist options
  • Save danahartweg/d2e9bbddf61993d26267c9a8860985cb to your computer and use it in GitHub Desktop.
Save danahartweg/d2e9bbddf61993d26267c9a8860985cb to your computer and use it in GitHub Desktop.
Firestore teardown - Unit testing Cloud Firestore
export async function teardown() {
useRealProjectId = false;
const appsToClean = [...apps(), ...adminApps];
return Promise.all(appsToClean.map((app) => app?.delete()));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment