fix: export graph snapshots without data drift

This commit is contained in:
xuelong committed 2026-08-26 01:44:22 -07:00
1 parent 4ccb63855f
commit 329a94d457
8 files changed
+673 -1707

No files matched your search

@@ -0,0 +1,17 @@
import assert from "node:assert/strict";
import { readFileSync } from "node:fs";
import test from "node:test";
const projectLandingSource = readFileSync(
new URL("../src/ProjectLanding.tsx", import.meta.url),
"utf8",
);
test("project creation keeps validated multi-label graph nodes", () => {
assert.match(projectLandingSource, /const rawLabels = rawNode\.labels/);
assert.match(projectLandingSource, /labels 必须包含主类型/);
assert.match(
projectLandingSource,
/\.\.\.\(normalizedLabels \? \{ labels: normalizedLabels \} : \{\}\)/,
);
});