Skip to content

Commit 06f71c9

Browse files
committed
debug logs
1 parent afd294a commit 06f71c9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/firestore/test/integration/api/query.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ import {
6464
toChangesArray,
6565
toDataArray,
6666
PERSISTENCE_MODE_UNSPECIFIED,
67+
withAlternateTestDb,
6768
withEmptyTestCollection,
6869
withRetry,
6970
withTestCollection,
@@ -76,7 +77,7 @@ import { captureExistenceFilterMismatches } from '../util/testing_hooks_util';
7677
apiDescribe('Queries', persistence => {
7778
addEqualityMatcher();
7879

79-
it('QuerySnapshot.toJSON bundle getDocFromCache', async () => {
80+
it('DDB4 local QuerySnapshot.toJSON bundle getDocFromCache', async () => {
8081
let path: string | null = null;
8182
let jsonBundle: object | null = null;
8283
const testDocs = {
@@ -99,6 +100,7 @@ apiDescribe('Queries', persistence => {
99100
});
100101
});
101102
expect(jsonBundle).to.not.be.null;
103+
console.log("DEDB json bundle: ", jsonBundle);
102104
// eslint-disable-next-line @typescript-eslint/no-explicit-any
103105
const json = (jsonBundle as any).bundle;
104106
expect(json).to.exist;
@@ -111,6 +113,8 @@ apiDescribe('Queries', persistence => {
111113
const docSnap = await getDocFromCache(docRef);
112114
expect(docSnap.exists);
113115
expect(docSnap.data()).to.deep.equal(testDocs.a);
116+
console.log("DEDB metadata.fromCache: ", docSnap.metadata.fromCache);
117+
//expect(docSnap.metadata.fromCache).to.be.true;
114118
});
115119
});
116120

0 commit comments

Comments
 (0)