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
| Property | Type | Description | Defined in |
|---|---|---|---|
childCount? | number | Overrides the count derived from seeded descendants — set it to model replies that exist server-side but were never seeded. | src/testing/seed.ts:19 |
content | string | - | src/testing/seed.ts:20 |
creator | SeedPerson | - | src/testing/seed.ts:21 |
deleted | boolean | Deleted by its creator (mutated by delete writes) | src/testing/seed.ts:23 |
id | number | - | src/testing/seed.ts:24 |
myVote | -1 | 0 | 1 | The logged-in user's vote (mutated by like writes) | src/testing/seed.ts:26 |
path | string | - | src/testing/seed.ts:27 |
post | SeedPost | - | src/testing/seed.ts:28 |
published? | string | ISO 8601; defaults to the fake's fixed "now" | src/testing/seed.ts:30 |
saved | boolean | Saved by the logged-in user (mutated by save writes) | src/testing/seed.ts:32 |
score | number | Base score at myVote 0; the logged-in user's vote is added on top | src/testing/seed.ts:34 |
