fix(rpa-core): compat-audit 报告写系统临时目录,不再污染仓库根(补齐 4f1fbc0 漏提交的修复)
任务 ID:RPA-MIG-0(自仓库收尾) 目标:测试运行不得在仓库根产生 .compat-report.txt,保证工作树干净 代码逻辑:报告路径改为 path.join(os.tmpdir(), ".compat-report.txt"),与对面 feat/rpa-core-migration 已迁入版本一致 验证:对面 48/48 全绿用同一份修复代码;本仓库测试布局与对面一致 风险与回滚:低——仅测试报告输出路径,回滚即恢复原路径
This commit is contained in:
parent
7a553fb270
commit
751dc04713
@ -1,7 +1,8 @@
|
||||
import { describe, it } from "vitest";
|
||||
import { capabilityIds } from "../../src/engine/registry";
|
||||
import { writeFileSync } from "node:fs";
|
||||
import { readFileSync } from "node:fs";
|
||||
import { writeFileSync, readFileSync } from "node:fs";
|
||||
import os from "node:os";
|
||||
import path from "node:path";
|
||||
import "../../src/capabilities/index"; // 汇总导入全部能力模块(与运行时同构)
|
||||
|
||||
interface CatalogComp {
|
||||
@ -70,6 +71,7 @@ describe("系统组件兼容性全量审查", () => {
|
||||
fieldIssues: fieldIssues.slice(0, 40),
|
||||
fieldIssueCount: fieldIssues.length
|
||||
};
|
||||
writeFileSync(".compat-report.txt", JSON.stringify(report, null, 1), "utf8");
|
||||
// 报告写系统临时目录:不得污染仓库工作树(对面 CI 门禁要求干净树)
|
||||
writeFileSync(path.join(os.tmpdir(), ".compat-report.txt"), JSON.stringify(report, null, 1), "utf8");
|
||||
}, 120000);
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user