import { describe, expect, it, vi } from 'vitest' import { render } from 'svelte/server' import type { AtUri, CommunityRef } from '$lib/api/coves/types' import type { DID, Handle } from '$lib/types/atproto' import PostMeta from './PostMeta.svelte' vi.mock('$env/dynamic/public', () => ({ env: {} })) const POST_URI = 'at://did:plc:author/social.coves.community.postv2/3lrkey' as AtUri const community: CommunityRef = { did: 'did:plc:comm' as DID, handle: 'gardening.local.coves.dev' as Handle, name: 'gardening', } const author = { did: 'did:plc:author' as DID, handle: 'mari.local.coves.dev' as Handle, } /** The href of the anchor wrapping the post title. */ function titleHref(html: string): string | undefined { return /