build(site): [SITE-07] retain shallowequal upstream attribution

This commit is contained in:
Harvey Zhao committed 2026-09-15 08:17:49 +08:00
1 parent 0503fe8aa8
commit 4bef084328
23 files changed
+1518 -19

No files matched your search

+8
View File
@@ -21,6 +21,13 @@ test('mobile vConsole shows logs and upstream site notice texts are served uncha
notices.push({ component: group.name, version: group.version, url: response.url(), sha256: notice.sha256 })
}
}
const attributionPath = '/licenses/console/react-pure-render/ATTRIBUTION.md'
const attribution = await request.get(attributionPath)
expect(attribution.status()).toBe(200)
const localLinks = [...(await attribution.text()).matchAll(/\]\((\.\.?\/[^)]+)\)/g)]
expect(localLinks).toHaveLength(2)
for (const [, target] of localLinks)
expect(notices.map(notice => notice.url)).toContain(new URL(target, attribution.url()).href)
await testInfo.attach('verified-vendor-notices', { contentType: 'application/json', body: JSON.stringify(notices) })
const provenance = JSON.parse(fs.readFileSync('refactor/baselines/site-codicons-provenance.json', 'utf8'))
const font = await request.get(`/${provenance.fontPath.slice('docs/'.length)}`)
@@ -30,6 +37,7 @@ test('mobile vConsole shows logs and upstream site notice texts are served uncha
expect(index.status()).toBe(200)
expect(await index.text()).toContain('Included component: @vscode/codicons 0.0.26')
expect(await index.text()).toContain('Included component: console-feed 3.2.2')
expect(await index.text()).toContain('Included component: react-pure-render (shallowequal origin) source commit 729cdbd')
expect(await index.text()).toContain('Included component: chromium-string-utils')
expect(await index.text()).toContain('Included component: @babel/runtime (react-inspector embedded) 7.13.10')
expect(await index.text()).toContain('Included component: regenerator-runtime 0.13.7')