A calm place to write long-form, and publish it to the open social web. skypress.blog/
0

Configure Feed

Select the types of activity you want to include in your feed.

Assert step-3 document write also carries mentions

+10
+10
src/lib/publish/publisher.test.ts
··· 516 516 expect( doc.content.mentions ).toEqual( [ 517 517 { did: 'did:plc:alice', handle: 'alice.bsky.social' }, 518 518 ] ); 519 + 520 + // The step-3 putRecord (last document write) must ALSO carry the flat mentions list, 521 + // alongside the bskyPostRef it back-links — so a regression dropping mentions from 522 + // only that builder can't slip through. 523 + const docWrites = created.filter( ( c ) => c.collection === 'site.standard.document' ); 524 + expect( docWrites.length ).toBeGreaterThanOrEqual( 2 ); 525 + expect( docWrites.at( -1 )!.record.content.mentions ).toEqual( [ 526 + { did: 'did:plc:alice', handle: 'alice.bsky.social' }, 527 + ] ); 528 + expect( docWrites.at( -1 )!.record.bskyPostRef ).toBeDefined(); 519 529 } ); 520 530 } );