test(sourcemaps): assert semantic evidence and actual output admission

Replace stale closed-property expectations with assertions for the evidence under test. Verify compiler coordinates and declaration indices separately in the real-browser workflow.

Consolidate duplicate 50000-map admission cases and derive admission from exact serialized bytes rather than IP-address-specific output shapes. Retain capacity, omission, and aggregate-byte coverage. A bounded Flameox CPU profile completed in about 1.4 seconds and showed no producer bottleneck; targeted admission and real Chrome CLI/MCP verification pass.
This commit is contained in:
morluto
2026-10-12 11:26:56 +08:00
parent 9f67e44e5d
commit bd74c7af2b
4 changed files with 77 additions and 53 deletions
@@ -45,13 +45,13 @@ cliTest.for(["CLI", "stdio MCP"] as const)(
source_name: "original.ts",
map_path: "bundle.js.map",
}),
properties: {
properties: expect.objectContaining({
source_index: 0,
declaration_index: 0,
source_name_available: true,
content_available: true,
content_sha256: originalDigest,
},
}),
evidence: expect.objectContaining({
artifact: expect.objectContaining({ sha256: mapDigest }),
}),