From 0451e4afc1bda67e571724e616ed5779f3e0633e Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Mon, 12 Oct 2026 01:32:15 +0200 Subject: [PATCH] cultcache-ts test: the plain-document write refusal names its document type (kills the Stryker survivor on the encode subject) Co-Authored-By: Claude Sonnet 5.5 --- packages/cultcache-ts/test/payload-depth.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/cultcache-ts/test/payload-depth.test.ts b/packages/cultcache-ts/test/payload-depth.test.ts index 7d8c1ca1..1a95924b 100644 --- a/packages/cultcache-ts/test/payload-depth.test.ts +++ b/packages/cultcache-ts/test/payload-depth.test.ts @@ -164,7 +164,8 @@ test("a document without a codec or formatter writes a value L deep and refuses assert.deepEqual(documentPayloadBytes(atLimit), encode(nest(L), { maxDepth: 1000 })); assert.deepEqual(decodeDocumentPayload(anything, atLimit), nest(L)); assert.throws(() => encodeDocumentPayload(anything, nest(L + 1)), (error: unknown) => - error instanceof CultCachePayloadDepthError && error.depth === L + 1 && error.limit === L); + error instanceof CultCachePayloadDepthError && error.depth === L + 1 && error.limit === L + && error.message === 'document type "t.any" value nests 257 MessagePack containers deep; the limit is 256.'); assert.throws(() => decodeDocumentPayload(anything, documentPayloadFromBytes(arrays(L + 1))), CultCachePayloadDepthError); });