docs: classify stale smoke paths

This commit is contained in:
lix-2026
2026-05-20 11:32:07 +08:00
parent 3feeaab3cb
commit e246006c81
8 changed files with 123 additions and 128 deletions
@@ -17,6 +17,12 @@ const TASK = "task179-tree-create-delete-no-reload-smoke";
const OUTPUT_DIR = path.join(process.cwd(), "tmp", TASK);
const RESULT_PATH = path.join(OUTPUT_DIR, "result.json");
if (process.env.MNOTE_ALLOW_DEBUG_TREE_SMOKE !== "1") {
throw new Error(
"task179 只覆盖已退为显式 debug/internal 的 /tree 壳。当前主链请使用 document/sidebar smoke;如确需复核 debug 壳,请设置 MNOTE_ALLOW_DEBUG_TREE_SMOKE=1。",
);
}
async function writeResult(payload) {
await fs.mkdir(OUTPUT_DIR, { recursive: true });
await fs.writeFile(RESULT_PATH, `${JSON.stringify({ ...payload, resultPath: RESULT_PATH }, null, 2)}\n`, "utf8");