refactor(scan): stop emitting markdown contract artifacts
Remove generated `.ui-contract.md` and `.bdd.md` outputs from the scan pipeline and documentation so downstream consumers rely on structured JSON artifacts instead. Also drop unused API `fieldRules` catalog output and remove stale app-map references to UI contract files. Update legacy flow matching to preserve only the nodes that directly matched the current entry.refactor(scan): stop emitting markdown contract artifacts Remove generated `.ui-contract.md` and `.bdd.md` outputs from the scan pipeline and documentation so downstream consumers rely on structured JSON artifacts instead. Also drop unused API `fieldRules` catalog output and remove stale app-map references to UI contract files. Update legacy flow matching to preserve only the nodes that directly matched the current entry.
This commit is contained in:
+3
-2
@@ -229,7 +229,7 @@ test('parsePrototypeGuide extracts legacy flow references for matched entries',
|
||||
|
||||
assert.equal(guide.legacyFlows.length, 1)
|
||||
assert.equal(guide.entries[0].flowRefs[0].tasks[0], '場地申請')
|
||||
assert.ok(guide.entries[0].flowRefs[0].nodes.some((node) => node.nodeType === 'precondition'))
|
||||
assert.ok(guide.entries[0].flowRefs[0].nodes.some((node) => node.nodeType === 'form'))
|
||||
assert.ok(guide.entries[0].flowRefs[0].nodes.some((node) => node.jsp.includes('zte450_01.jsp')))
|
||||
})
|
||||
|
||||
@@ -278,7 +278,8 @@ test('buildApiCatalog parses generic markdown API docs and matches routes', () =
|
||||
])
|
||||
|
||||
assert.ok(catalog.endpoints.some((endpoint) => endpoint.id === 'POST /api/v1/orders'))
|
||||
assert.equal(catalog.fieldRules[0].field, 'orderName')
|
||||
const ordersEndpoint = catalog.endpoints.find((endpoint) => endpoint.id === 'POST /api/v1/orders')
|
||||
assert.equal(ordersEndpoint.fieldRules[0].field, 'orderName')
|
||||
const matches = matchApiEndpoints({
|
||||
prototype: 'orders/apply.html',
|
||||
page: 'apply.html',
|
||||
|
||||
Reference in New Issue
Block a user