docs: classify stale smoke paths
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user