Reimplements PR #86 independently (author abandoned it after change-requests), with the review feedback applied — the original tests asserted behavior the code never had. #84 — add @snowluma/common unit tests: - hex: toHex/toHexUpper/hexPreview boundary + fromHex round-trip & odd-length throw - log-summary: summarizeParams (top-level primitive is String()'d WITHOUT quotes; fields quoted; nested collapsed; total cap) and renderParamsVerbose (redaction, long-string marker is the Unicode ellipsis '…<N B>' not ASCII '...', circular guard) - request-context: nextRequestId monotonic; runWithRequestId sync/async + nested scopes - root scripts test:common/test:all/coverage; coverage/ gitignored #85 — Utf8Validator: the second surrogate check was unreachable (within the 0x80–0xBF continuation-byte guard, 'b & 0x20' is true iff 'b >= 0xA0'); merge to one check. No behavior change. common suite green (26 tests).
This commit is contained in:
6 files changed
+132
-4
No files matched your search
@@ -16,6 +16,9 @@
|
||||
"dev:web": "pnpm --filter webui dev",
|
||||
"test": "pnpm --filter @snowluma/core test",
|
||||
"test:watch": "pnpm --filter @snowluma/core test:watch",
|
||||
"test:common": "pnpm --filter @snowluma/common test",
|
||||
"test:all": "pnpm -r --if-present test",
|
||||
"coverage": "pnpm --filter @snowluma/common test -- --coverage",
|
||||
"typecheck": "pnpm -r --if-present typecheck",
|
||||
"lint": "eslint .",
|
||||
"lint:fix": "eslint . --fix",
|
||||
|
||||
Reference in new issue
Block a user