fix: sync docs capture asset tree

Issue: #337
User-Visible: no
This commit is contained in:
Matysh
2026-08-28 05:40:28 +00:00
committed by claude[bot]
parent e3f5c49502
commit eedff24b29
2 changed files with 11 additions and 6 deletions
+6
View File
@@ -120,3 +120,9 @@ test('source type references stay portable across build hosts', () => {
'type imports must not capture an absolute Windows workspace path',
);
});
test('documentation capture materializes the complete bundle tree', () => {
const capture = readFileSync(join(repoRoot, 'demo', 'docs', 'capture.mjs'), 'utf8');
assert.match(capture, /import ['"]\.\.\/\.\.\/scripts\/bundle-sync\.mjs['"]/);
assert.doesNotMatch(capture, /copyFileSync\(BUNDLE,\s*DEMO_BUNDLE\)/);
});