test(FN-4721): update lazy-view docs guard for GoalsView
Fusion-Task-Id: FN-4721 Fusion-Task-Lineage: 49c9e432-c1b1-4b76-9b25-4a5ca6f2ffae
This commit is contained in:
committed by
gsxdsm
parent
84d90096d4
commit
75820cedb2
@@ -15,6 +15,7 @@ const EXPECTED_DOCUMENTED_VIEWS = new Set([
|
||||
"ReliabilityView",
|
||||
"EvalsView",
|
||||
"TodoView",
|
||||
"GoalsView",
|
||||
"StashRecoveryView",
|
||||
"SetupWizardModal",
|
||||
"PluginManager",
|
||||
@@ -70,18 +71,18 @@ function extractAppLazyViews(appSource: string): Set<string> {
|
||||
}
|
||||
|
||||
describe("AGENTS lazy-loaded views inventory", () => {
|
||||
it("documents the App-level lazy views accurately and keeps the curated 17-view list in sync", () => {
|
||||
it("documents the App-level lazy views accurately and keeps the curated 18-view list in sync", () => {
|
||||
const agentsDoc = readFileSync(resolve(__dirname, "../../../../AGENTS.md"), "utf-8");
|
||||
const appSource = readFileSync(resolve(__dirname, "../App.tsx"), "utf-8");
|
||||
|
||||
const section = extractLazyLoadedSection(agentsDoc);
|
||||
const countMatch = section.match(/These\s+(\d+)\s+views\s+are lazy-loaded/);
|
||||
expect(countMatch).toBeTruthy();
|
||||
expect(Number(countMatch?.[1])).toBe(17);
|
||||
expect(Number(countMatch?.[1])).toBe(18);
|
||||
|
||||
const documentedViews = extractBacktickedNamesFromBullets(section);
|
||||
expect(new Set(documentedViews)).toEqual(EXPECTED_DOCUMENTED_VIEWS);
|
||||
expect(documentedViews).toHaveLength(17);
|
||||
expect(documentedViews).toHaveLength(18);
|
||||
|
||||
expect(section).toContain("`ResearchView`");
|
||||
expect(section).toContain("`TodoView`");
|
||||
|
||||
Reference in New Issue
Block a user