diff --git a/bridge/helpers/firestore.js b/bridge/helpers/firestore.js index adec181c..49983cbb 100644 --- a/bridge/helpers/firestore.js +++ b/bridge/helpers/firestore.js @@ -75,6 +75,14 @@ module.exports = { return Promise.resolve(); }, + testDocRef(docId) { + shouldCleanup = true; + return firebase + .firestore() + .collection(TEST_COLLECTION_NAME) + .doc(`${testRunId}${docId}`); + }, + testCollection(collection) { shouldCleanup = true; return firebase.firestore().collection(collection || TEST_COLLECTION_NAME);