test: 扩展双视觉模板回归检查
This commit is contained in:
1 parent
80ef03b792
commit
c6679b9de0
5 files changed
+8
-3
No files matched your search
@@ -11,5 +11,6 @@ const pageMap = { home: "pages/index/index", offerings: "pages/services/index",
|
||||
const missingPages = fixture.pages.filter((key) => !fs.existsSync(path.join(root, `${pageMap[key]}.json`)));
|
||||
if (missingPages.length) { console.error(`${fixture.templateKey}: missing page manifests: ${missingPages.join(", ")}`); process.exit(1); }
|
||||
if (!fixture.layout?.home?.length) { console.error(`${fixture.templateKey}: missing home layout`); process.exit(1); }
|
||||
if (fixture.visualAnchors?.home && JSON.stringify(fixture.layout.home) !== JSON.stringify(fixture.visualAnchors.home)) { console.error(`${fixture.templateKey}: home layout does not match visual anchors`); process.exit(1); }
|
||||
console.log(`Fixture ${fixture.templateKey}@${fixture.version} passed: ${fixture.requiredModules.length} modules.`);
|
||||
}
|
||||
Reference in new issue
Block a user