Skip to content

Interface: SeedComment

Defined in: src/testing/seed.ts:14

Semantic, provider-agnostic seed model for fake instances.

Consumer tests describe what exists — people, posts, comments, notifications — and each fake instance derives its provider's wire responses from this store. Specs never touch endpoint paths or wire shapes for content; mock()/calls() remain for error injection and asserting outgoing requests.

Field names follow threadiverse's canonical types (post.name, comment.content) so tests assert on the same names they seed.

Properties

PropertyTypeDescriptionDefined in
childCountnumber-src/testing/seed.ts:15
contentstring-src/testing/seed.ts:16
creatorSeedPerson-src/testing/seed.ts:17
idnumber-src/testing/seed.ts:18
pathstring-src/testing/seed.ts:19
postSeedPost-src/testing/seed.ts:20
published?stringISO 8601; defaults to the fake's fixed "now"src/testing/seed.ts:22