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
@@ -26,6 +26,15 @@ it("reconstructs package, Electron roles, Webpack/Rspack modules, and cross-laye
expect(Reflect.get(globalThis, "__rea_bundle_executed")).toBeUndefined();
expect(result.input_path).toBe(root);
const longPath = `/${"deep/".repeat(4_000)}application`;
const { electron_summary: summary, ...analysisResult } = result;
expect(
javascriptApplicationAnalysisResultSchema.parse({
...analysisResult,
summary,
input_path: longPath,
}).input_path,
).toBe(longPath);
expect(result.statistics).toMatchObject({
modules: 4,
parse_failures: 0,