Files
FreeCADWasmDev/tools/mark_web_test_modules_completed.mjs
wangdequan 9a7c4f0335 Save FreeCAD Web workspace sources and user validation evidence
IFC native binding remains incomplete; preserve accurate test results.
2026-09-15 22:01:58 +08:00

11 lines
548 B
JavaScript

import fs from "node:fs";
import path from "node:path";
import { fileURLToPath } from "node:url";
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
const statePath = path.join(root, "docs/current/task-state.json");
const state = JSON.parse(fs.readFileSync(statePath, "utf8"));
state.module_status.Web = "completed";
state.module_status.Test = "completed";
fs.writeFileSync(statePath, `${JSON.stringify(state, null, 2)}\n`);
console.log(JSON.stringify({ Web: state.module_status.Web, Test: state.module_status.Test }));