Cap articles.content at 10000 characters, with coverage

PocketBase silently enforced its own default max on unbounded text
fields, which broke saving a real production article longer than that.
Make the limit explicit and generous enough for the content this blog
actually publishes, and add a test asserting the exact boundary.
This commit is contained in:
2026-09-11 13:53:17 +02:00
parent 7ce073d2a9
commit 847edc7397
3 changed files with 41 additions and 1 deletions
+3
View File
@@ -83,6 +83,8 @@ export interface TestCategory {
export interface TestPocketbase {
url: string
/** Superuser auth token, for tests that need to create/inspect records beyond the seeded fixtures. */
token: string
categories: TestCategory[]
articles: TestArticle[]
stop(): Promise<void>
@@ -155,6 +157,7 @@ export async function startTestPocketbase(options: StartOptions = {}): Promise<T
return {
url,
token,
categories,
articles,
async stop() {