We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc583be commit c8df3beCopy full SHA for c8df3be
packages/firestore/test/lite/integration.test.ts
@@ -524,6 +524,19 @@ describe('Transaction', () => {
524
});
525
526
527
+ it('can read deleted doc then write', () => {
528
+ return withTestDocAndInitialData({ counter: 1 }, async doc => {
529
+ await deleteDoc(doc);
530
+ await runTransaction(doc.firestore, async transaction => {
531
+ const snap = await transaction.get(doc);
532
+ expect(snap.exists()).to.be.false;
533
+ transaction.set(doc, { counter: 1 });
534
+ });
535
+ const result = await getDoc(doc);
536
+ expect(result.get('counter')).to.equal(1);
537
538
539
+
540
it('retries when document is modified', () => {
541
return withTestDoc(async doc => {
542
let retryCounter = 0;
0 commit comments