fix: 產出格式修正

This commit is contained in:
skytek_xinliang
2026-06-08 11:53:46 +08:00
parent 23fc852321
commit 75a12f3760
7 changed files with 182 additions and 415 deletions
+6 -1
View File
@@ -30,6 +30,12 @@ test('CLI runs doctor and scan against one prototype', async () => {
| --- | --- | --- |
| [\`index.html\`](index.html) | \`legacy/index.jsp\` | Customer portal entry |
`)
await mkdir(join(cwd, '.playwright'), { recursive: true })
await writeFile(join(cwd, '.playwright/cli.config.json'), JSON.stringify({
browser: {
browserName: 'chromium'
}
}, null, 2))
const doctor = await exec('node', [cli, 'doctor'], { cwd })
await exec('node', [cli, 'scan'], { cwd })
@@ -59,7 +65,6 @@ test('CLI runs doctor and scan against one prototype', async () => {
assert.equal(appMap.routes[0].evidence.recommendedTemplate, undefined)
assert.equal(appMap.routes[0].guide.legacyJsp, 'legacy/index.jsp')
assert.equal(appMap.routes[0].guide.description, 'Customer portal entry')
assert.equal(appMap.guideSources[0].source, 'portal.md')
})
function pick(object, keys) {