refactor(tools): remove artificial analysis ceilings

This commit is contained in:
morluto
2026-09-29 16:29:23 +08:00
parent 36aeec9586
commit 2f08c7c932
202 changed files with 2314 additions and 3072 deletions
@@ -9,6 +9,22 @@ const sha256 = (value: Uint8Array): string =>
createHash("sha256").update(value).digest("hex");
describe("JavaScript export instrumentation", () => {
it("retains a long caller-provided artifact path in the manifest", () => {
const source = encode("const value = 1;");
const path = `/${"deep/".repeat(1_000)}app.js`;
const output = instrumentJavaScriptExport(source, {
artifact_path: path,
artifact_sha256: sha256(source),
selection: {
byte_start: 14,
byte_end: 15,
selected_sha256: sha256(encode("1")),
export_name: "value",
},
});
expect(output.manifest.artifact_path).toBe(path);
});
it.each([
[
"plain",